	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_request                   ## -- Begin function send_request
	.p2align	4, 0x90
_send_request:                          ## @send_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	-56(%rbp), %rdi
	callq	_time
	movq	-56(%rbp), %rax
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movl	%eax, %r14d
	subl	%edx, %r14d
	movq	8(%rcx), %rdx
	movq	_S_REBOOTING@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_S_REQUESTING@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	cmpq	%rdi, %rdx
	je	LBB0_2
## %bb.1:
	cmpq	%rsi, %rdx
	jne	LBB0_4
LBB0_2:
	movq	56(%rcx), %rbx
	cmpl	%r14d, (%rbx)
	jge	LBB0_4
## %bb.3:
	movq	_S_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rcx)
	leaq	_send_request(%rip), %rdi
	movq	%r15, %rsi
	callq	_cancel_timeout
	jmp	LBB0_13
LBB0_4:
	cmpq	%rdi, %rdx
	jne	LBB0_8
## %bb.5:
	cmpq	$0, 64(%rcx)
	jne	LBB0_8
## %bb.6:
	movq	40(%rcx), %rdi
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movq	%rdi, 64(%rcx)
LBB0_8:
	cmpq	%rsi, %rdx
	je	LBB0_14
## %bb.9:
	movq	40(%rcx), %rdx
	cmpq	(%rdx), %rax
	jle	LBB0_14
## %bb.10:
	movq	%r15, %rdi
	callq	_AdapterFindInfo
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %r14
	movq	(%rax), %rdi
	callq	_DeleteIPAddress
	movq	$0, (%r14)
LBB0_12:
	movq	_S_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
LBB0_13:
	movq	%r15, %rdi
	callq	_state_init
	jmp	LBB0_36
LBB0_14:
	cmpl	$0, 16(%rcx)
	je	LBB0_15
## %bb.16:
	xorl	%eax, %eax
	callq	_rand
	sarl	$2, %eax
	movq	(%r15), %rcx
	movl	16(%rcx), %esi
	leal	(%rsi,%rsi), %edi
	cltd
	idivl	%edi
	addl	%esi, %edx
	movl	%edx, 16(%rcx)
	movq	56(%rcx), %rax
	jmp	LBB0_17
LBB0_15:
	movq	56(%rcx), %rax
	movl	4(%rax), %edx
	movl	%edx, 16(%rcx)
LBB0_17:
	movl	8(%rax), %eax
	cmpl	%eax, %edx
	jle	LBB0_19
## %bb.18:
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	xorl	%eax, %eax
	callq	_rand
	sarl	$2, %eax
	movq	(%r15), %rcx
	cltd
	idivl	16(%rcx)
	addl	%ebx, %edx
	movl	%edx, 16(%rcx)
LBB0_19:
	movq	8(%rcx), %rax
	cmpq	(%r13), %rax
	je	LBB0_22
## %bb.20:
	movq	-56(%rbp), %rax
	movslq	%edx, %rsi
	addq	%rax, %rsi
	movq	40(%rcx), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rsi
	jle	LBB0_22
## %bb.21:
	subl	%eax, %edx
	incl	%edx
	movl	%edx, 16(%rcx)
LBB0_22:
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	cmpq	(%r13), %rcx
	je	LBB0_25
## %bb.23:
	cmpq	(%r12), %rcx
	je	LBB0_25
## %bb.24:
	movq	-56(%rbp), %rcx
	movq	40(%rax), %rdx
	cmpq	8(%rdx), %rcx
	jle	LBB0_26
LBB0_25:
	movq	_INADDR_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	jmp	LBB0_27
LBB0_26:
	leaq	-64(%rbp), %rdi
	movl	48(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_27:
	movq	_REMOTE_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, -72(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	(%r15), %rcx
	movq	8(%rcx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_29
## %bb.28:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	32(%rcx), %rax
	jmp	LBB0_35
LBB0_29:
	movq	40(%rcx), %rax
	movl	16(%rax), %esi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r15), %rcx
	movq	8(%rcx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_31
## %bb.30:
	movq	32(%rcx), %rax
	jmp	LBB0_35
LBB0_31:
	cmpl	$65535, %r14d                   ## imm = 0xFFFF
	jg	LBB0_33
## %bb.32:
	movl	%r14d, %edi
	jmp	LBB0_34
LBB0_33:
	movl	$65535, %edi                    ## imm = 0xFFFF
LBB0_34:
	callq	_htons
	movq	(%r15), %rcx
LBB0_35:
	movq	%rax, 24(%rcx)
	movl	8(%r15), %r14d
	movl	-64(%rbp), %edi
	callq	_inet_ntoa
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi
	callq	_ntohs
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_note
	movq	(%r15), %rsi
	movl	20(%rsi), %edx
	addq	$24, %rsi
	movl	-48(%rbp), %ecx
	leaq	-72(%rbp), %r8
	movq	%r15, %rdi
	xorl	%r9d, %r9d
	callq	_send_packet
	movq	(%r15), %rax
	movslq	16(%rax), %rdi
	addq	-56(%rbp), %rdi
	leaq	_send_request(%rip), %rsi
	movq	%r15, %rdx
	callq	_add_timeout
LBB0_36:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_REBOOTING,8,3                ## @S_REBOOTING
	.comm	_S_REQUESTING,8,3               ## @S_REQUESTING
	.comm	_S_INIT,8,3                     ## @S_INIT
	.comm	_INADDR_BROADCAST,4,2           ## @INADDR_BROADCAST
	.comm	_REMOTE_PORT,4,2                ## @REMOTE_PORT
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DHCPREQUEST on %s to %s port %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_request                   ; -- Begin function send_request
	.p2align	2
_send_request:                          ; @send_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	x0, sp
	bl	_time
	ldr	x9, [sp]
	ldr	x8, [x19]
	ldr	w10, [x8]
	sub	w20, w9, w10
	ldr	x10, [x8, #8]
Lloh0:
	adrp	x22, _S_REBOOTING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _S_REBOOTING@GOTPAGEOFF]
	ldr	x12, [x22]
Lloh2:
	adrp	x21, _S_REQUESTING@GOTPAGE
Lloh3:
	ldr	x21, [x21, _S_REQUESTING@GOTPAGEOFF]
	ldr	x11, [x21]
	cmp	x10, x12
	ccmp	x10, x11, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	x13, [x8, #56]
	ldr	w13, [x13]
	cmp	w13, w20
	b.ge	LBB0_3
; %bb.2:
Lloh4:
	adrp	x9, _S_INIT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _S_INIT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	str	x9, [x8, #8]
Lloh7:
	adrp	x0, _send_request@PAGE
Lloh8:
	add	x0, x0, _send_request@PAGEOFF
	mov	x1, x19
	bl	_cancel_timeout
	b	LBB0_12
LBB0_3:
	cmp	x10, x12
	b.ne	LBB0_7
; %bb.4:
	ldr	x12, [x8, #64]
	cbnz	x12, LBB0_7
; %bb.5:
	ldr	x12, [x8, #40]
	ldr	x12, [x12, #24]
	cbz	x12, LBB0_7
; %bb.6:
	str	x12, [x8, #64]
LBB0_7:
	cmp	x10, x11
	b.eq	LBB0_13
; %bb.8:
	ldr	x10, [x8, #40]
	ldr	x10, [x10]
	cmp	x9, x10
	b.le	LBB0_13
; %bb.9:
	mov	x0, x19
	bl	_AdapterFindInfo
	cbz	x0, LBB0_11
; %bb.10:
	mov	x20, x0
	ldr	x0, [x0]
	bl	_DeleteIPAddress
	str	xzr, [x20]
LBB0_11:
Lloh9:
	adrp	x8, _S_INIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S_INIT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9, #8]
LBB0_12:
	mov	x0, x19
	bl	_state_init
	b	LBB0_35
LBB0_13:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_15
; %bb.14:
	bl	_rand
	asr	w9, w0, #2
	ldr	x8, [x19]
	ldr	w10, [x8, #16]
	lsl	w11, w10, #1
	sdiv	w12, w9, w11
	msub	w9, w12, w11, w9
	add	w9, w9, w10
	str	w9, [x8, #16]
	ldr	x10, [x8, #56]
	b	LBB0_16
LBB0_15:
	ldr	x10, [x8, #56]
	ldr	w9, [x10, #4]
	str	w9, [x8, #16]
LBB0_16:
	ldr	w10, [x10, #8]
	cmp	w9, w10
	b.le	LBB0_18
; %bb.17:
	cmp	w10, #0
	cinc	w23, w10, lt
	bl	_rand
	asr	w9, w0, #2
	ldr	x8, [x19]
	ldr	w10, [x8, #16]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	add	w9, w9, w23, asr #1
	str	w9, [x8, #16]
LBB0_18:
	ldr	x10, [x8, #8]
	ldr	x11, [x21]
	cmp	x10, x11
	b.eq	LBB0_21
; %bb.19:
	ldr	x10, [sp]
	add	x11, x10, w9, sxtw
	ldr	x9, [x8, #40]
	ldr	x9, [x9]
	cmp	x11, x9
	b.le	LBB0_21
; %bb.20:
	sub	w9, w9, w10
	add	w9, w9, #1
	str	w9, [x8, #16]
LBB0_21:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	x10, [x21]
	cmp	x9, x10
	b.eq	LBB0_24
; %bb.22:
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_24
; %bb.23:
	ldr	x9, [sp]
	ldr	x10, [x8, #40]
	ldr	x10, [x10, #8]
	cmp	x9, x10
	b.le	LBB0_25
LBB0_24:
Lloh12:
	adrp	x8, _INADDR_BROADCAST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INADDR_BROADCAST@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	b	LBB0_26
LBB0_25:
	add	x9, sp, #16
	add	x0, x9, #8
	ldr	w1, [x8, #48]
	mov	w2, #4
	bl	_memcpy
LBB0_26:
Lloh15:
	adrp	x8, _REMOTE_PORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REMOTE_PORT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [sp, #16]
Lloh18:
	adrp	x8, _AF_INET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_28
; %bb.27:
Lloh21:
	adrp	x9, _INADDR_ANY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _INADDR_ANY@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [sp, #8]
	ldr	x0, [x8, #32]
	b	LBB0_34
LBB0_28:
	ldr	x8, [x8, #40]
	ldr	w1, [x8, #16]
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_30
; %bb.29:
	ldr	x0, [x8, #32]
	b	LBB0_34
LBB0_30:
	cmp	w20, #16, lsl #12               ; =65536
	b.ge	LBB0_32
; %bb.31:
	mov	x0, x20
	b	LBB0_33
LBB0_32:
	mov	w0, #65535
LBB0_33:
	bl	_htons
	ldr	x8, [x19]
LBB0_34:
	str	x0, [x8, #24]
	ldr	w20, [x19, #8]
	ldr	w0, [sp, #24]
	bl	_inet_ntoa
	mov	x21, x0
	ldr	x0, [sp, #16]
	bl	_ntohs
	mov	x3, x0
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_note
	ldr	x8, [x19]
	add	x1, x8, #24
	ldr	w2, [x8, #20]
	ldr	w3, [sp, #8]
	add	x4, sp, #16
	mov	x0, x19
	mov	x5, #0
	bl	_send_packet
	ldr	x8, [sp]
	ldr	x9, [x19]
	ldrsw	x9, [x9, #16]
	add	x0, x8, x9
Lloh26:
	adrp	x1, _send_request@PAGE
Lloh27:
	add	x1, x1, _send_request@PAGEOFF
	mov	x2, x19
	bl	_add_timeout
LBB0_35:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_S_REBOOTING,8,3                ; @S_REBOOTING
	.comm	_S_REQUESTING,8,3               ; @S_REQUESTING
	.comm	_S_INIT,8,3                     ; @S_INIT
	.comm	_INADDR_BROADCAST,4,2           ; @INADDR_BROADCAST
	.comm	_REMOTE_PORT,4,2                ; @REMOTE_PORT
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DHCPREQUEST on %s to %s port %d"

.subsections_via_symbols
