	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_state_selecting                ## -- Begin function state_selecting
	.p2align	4, 0x90
_state_selecting:                       ## @state_selecting
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_S_SELECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASSERT_STATE
	leaq	-40(%rbp), %rdi
	callq	_time
	leaq	_state_selecting(%rip), %rdi
	movq	%r14, %rsi
	callq	_cancel_timeout
	movq	_send_discover@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_cancel_timeout
	movq	(%r14), %rax
	movq	56(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_free_client_lease
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	testq	%r12, %r12
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %r12
	testq	%r15, %r15
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_check_arp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 24(%rbx)
	movq	%rbx, %r15
	jmp	LBB0_6
LBB0_7:
	movq	(%r14), %rax
	movq	$0, 56(%rax)
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movq	16(%r15), %rcx
	movq	_DHO_DHCP_MESSAGE_TYPE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_10
## %bb.11:
	movq	_iaddr_broadcast@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	_S_REQUESTING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rax)
	movq	-40(%rbp), %rcx
	movq	%rcx, 24(%rax)
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_make_request
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rax)
	movq	%r15, %rdi
	callq	_free_client_lease
	movq	%r14, %rdi
	callq	_send_request
	jmp	LBB0_12
LBB0_13:
	movq	$0, 56(%rax)
LBB0_8:
	movq	_S_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rax)
	movq	%r14, %rdi
	callq	_state_init
	jmp	LBB0_12
LBB0_10:
	movq	%r15, 48(%rax)
	movq	-40(%rbp), %rcx
	leaq	12000(%rcx), %rdx
	movq	%rdx, 8(%r15)
	movl	(%r15), %edx
	movl	4(%r15), %esi
	leal	8000(%rcx,%rsi), %esi
	movl	%esi, 4(%r15)
	leal	10000(%rcx,%rdx), %ecx
	movl	%ecx, (%r15)
	movq	_S_REQUESTING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rax)
	movq	%r14, %rdi
	callq	_bind_lease
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state,4,2                      ## @state
	.comm	_S_SELECTING,4,2                ## @S_SELECTING
	.comm	_S_INIT,8,3                     ## @S_INIT
	.comm	_DHO_DHCP_MESSAGE_TYPE,8,3      ## @DHO_DHCP_MESSAGE_TYPE
	.comm	_S_REQUESTING,8,3               ## @S_REQUESTING
	.comm	_iaddr_broadcast,4,2            ## @iaddr_broadcast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_state_selecting                ; -- Begin function state_selecting
	.p2align	2
_state_selecting:                       ; @state_selecting
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _S_SELECTING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_SELECTING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ASSERT_STATE
	add	x0, sp, #8
	bl	_time
Lloh6:
	adrp	x0, _state_selecting@PAGE
Lloh7:
	add	x0, x0, _state_selecting@PAGEOFF
	mov	x1, x19
	bl	_cancel_timeout
Lloh8:
	adrp	x0, _send_discover@GOTPAGE
Lloh9:
	ldr	x0, [x0, _send_discover@GOTPAGEOFF]
	mov	x1, x19
	bl	_cancel_timeout
	ldr	x8, [x19]
	ldr	x21, [x8, #56]
	cbz	x21, LBB0_9
; %bb.1:
	mov	x20, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_free_client_lease
	mov	x21, x22
	cbz	x22, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x21, #24]
	cbnz	x20, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_check_arp
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x21, #24]
	mov	x20, x21
	mov	x21, x22
	cbnz	x22, LBB0_3
LBB0_6:
	ldr	x8, [x19]
	str	xzr, [x8, #56]
	cbz	x20, LBB0_10
; %bb.7:
	ldr	x9, [x20, #16]
Lloh10:
	adrp	x10, _DHO_DHCP_MESSAGE_TYPE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _DHO_DHCP_MESSAGE_TYPE@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
	cbz	w9, LBB0_11
; %bb.8:
Lloh13:
	adrp	x9, _iaddr_broadcast@GOTPAGE
Lloh14:
	ldr	x9, [x9, _iaddr_broadcast@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	str	w9, [x8, #40]
Lloh16:
	adrp	x9, _S_REQUESTING@GOTPAGE
Lloh17:
	ldr	x9, [x9, _S_REQUESTING@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	x10, [sp, #8]
	stp	x10, x9, [x8, #24]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	str	w9, [x8, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_make_request
	ldr	x8, [x19]
	ldr	w9, [x8]
	str	w9, [x8, #4]
	mov	x0, x20
	bl	_free_client_lease
	mov	x0, x19
	bl	_send_request
	b	LBB0_12
LBB0_9:
	str	xzr, [x8, #56]
LBB0_10:
Lloh19:
	adrp	x9, _S_INIT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _S_INIT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	str	x9, [x8, #32]
	mov	x0, x19
	bl	_state_init
	b	LBB0_12
LBB0_11:
	str	x20, [x8, #48]
	ldr	x9, [sp, #8]
	mov	w10, #12000
	add	x10, x9, x10
	str	x10, [x20, #8]
	mov	w10, #8000
	ldp	w12, w11, [x20]
	add	w11, w9, w11
	add	w10, w11, w10
	mov	w11, #10000
	add	w9, w9, w12
	add	w9, w9, w11
	stp	w9, w10, [x20]
Lloh22:
	adrp	x9, _S_REQUESTING@GOTPAGE
Lloh23:
	ldr	x9, [x9, _S_REQUESTING@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	str	x9, [x8, #32]
	mov	x0, x19
	bl	_bind_lease
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_state,4,2                      ; @state
	.comm	_S_SELECTING,4,2                ; @S_SELECTING
	.comm	_S_INIT,8,3                     ; @S_INIT
	.comm	_DHO_DHCP_MESSAGE_TYPE,8,3      ; @DHO_DHCP_MESSAGE_TYPE
	.comm	_S_REQUESTING,8,3               ; @S_REQUESTING
	.comm	_iaddr_broadcast,4,2            ; @iaddr_broadcast
.subsections_via_symbols
