	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -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	_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_11
## %bb.1:
	leaq	L_.str.1(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_make_decline
	movq	%r14, %rdi
	callq	_send_decline
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	%r15, %rbx
	testq	%r15, %r15
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %r15
	testq	%r13, %r13
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_script_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_script_write_params
	xorl	%eax, %eax
	callq	_script_go
	testq	%rax, %rax
	jne	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 24(%rbx)
	movq	%rbx, %r13
	jmp	LBB0_6
LBB0_7:
	movq	(%r14), %rax
	movq	$0, 56(%rax)
	testq	%r13, %r13
	je	LBB0_12
## %bb.8:
	movq	16(%r13), %rcx
	movq	_DHO_DHCP_MESSAGE_TYPE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_13
## %bb.9:
	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	_cur_time@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rax)
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_make_request
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rax)
	movq	%r13, %rdi
	callq	_free_client_lease
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_request                   ## TAILCALL
LBB0_11:
	movq	$0, 56(%rax)
LBB0_12:
	movq	_S_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rax)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_state_init                     ## TAILCALL
LBB0_13:
	movq	%r13, 48(%rax)
	movq	_cur_time@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	12000(%rcx), %rdx
	movq	%rdx, 8(%r13)
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leal	8000(%rcx,%rsi), %esi
	movl	%esi, 4(%r13)
	leal	10000(%rcx,%rdx), %ecx
	movl	%ecx, (%r13)
	movq	_S_REQUESTING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rax)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bind_lease                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_state,4,2                      ## @state
	.comm	_S_SELECTING,4,2                ## @S_SELECTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ARPCHECK"

L_.str.1:                               ## @.str.1
	.asciz	"check_"

	.comm	_S_INIT,8,3                     ## @S_INIT
	.comm	_DHO_DHCP_MESSAGE_TYPE,8,3      ## @DHO_DHCP_MESSAGE_TYPE
	.comm	_cur_time,8,3                   ## @cur_time
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	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
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	x23, [x8, #56]
	cbz	x23, LBB0_10
; %bb.1:
	mov	x20, #0
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_make_decline
	mov	x0, x19
	bl	_send_decline
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_free_client_lease
	mov	x23, x24
	cbz	x24, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x23, #24]
	cbnz	x20, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23, #32]
	mov	x0, x21
	bl	_script_init
	mov	x0, x22
	mov	x1, x23
	bl	_script_write_params
	bl	_script_go
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x23, #24]
	mov	x20, x23
	mov	x23, x24
	cbnz	x24, LBB0_4
LBB0_7:
	ldr	x8, [x19]
	str	xzr, [x8, #56]
	cbz	x20, LBB0_11
; %bb.8:
	ldr	x9, [x20, #16]
Lloh14:
	adrp	x10, _DHO_DHCP_MESSAGE_TYPE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DHO_DHCP_MESSAGE_TYPE@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
	cbz	w9, LBB0_12
; %bb.9:
Lloh17:
	adrp	x9, _iaddr_broadcast@GOTPAGE
Lloh18:
	ldr	x9, [x9, _iaddr_broadcast@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w9, [x8, #40]
Lloh20:
	adrp	x9, _S_REQUESTING@GOTPAGE
Lloh21:
	ldr	x9, [x9, _S_REQUESTING@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	adrp	x10, _cur_time@GOTPAGE
Lloh24:
	ldr	x10, [x10, _cur_time@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	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
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_send_request
LBB0_10:
	str	xzr, [x8, #56]
LBB0_11:
Lloh26:
	adrp	x9, _S_INIT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _S_INIT@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	str	x9, [x8, #32]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_state_init
LBB0_12:
	str	x20, [x8, #48]
Lloh29:
	adrp	x9, _cur_time@GOTPAGE
Lloh30:
	ldr	x9, [x9, _cur_time@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	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]
Lloh32:
	adrp	x9, _S_REQUESTING@GOTPAGE
Lloh33:
	ldr	x9, [x9, _S_REQUESTING@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	str	x9, [x8, #32]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bind_lease
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_state,4,2                      ; @state
	.comm	_S_SELECTING,4,2                ; @S_SELECTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ARPCHECK"

l_.str.1:                               ; @.str.1
	.asciz	"check_"

	.comm	_S_INIT,8,3                     ; @S_INIT
	.comm	_DHO_DHCP_MESSAGE_TYPE,8,3      ; @DHO_DHCP_MESSAGE_TYPE
	.comm	_cur_time,8,3                   ; @cur_time
	.comm	_S_REQUESTING,8,3               ; @S_REQUESTING
	.comm	_iaddr_broadcast,4,2            ; @iaddr_broadcast
.subsections_via_symbols
