	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atif_probe_device
_atif_probe_device:                     ## @atif_probe_device
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_ntohs
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	callq	_ntohs
	subl	%eax, %r15d
	movl	16(%rbx), %edi
	callq	_ntohs
	movl	%eax, %ecx
	movl	12(%rbx), %r12d
	movq	_ATADDR_ANYNET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_3
## %bb.1:
	leal	1(%r15), %r14d
	movl	4(%rbx), %edi
	callq	_ntohs
	movl	%eax, %ecx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r14d
	addl	%edx, %ecx
LBB0_3:
	movq	_ATADDR_ANYNODE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_5
## %bb.4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	movq	_ATIF_PROBE@GOTPCREL(%rip), %rdx
	movl	(%rbx), %eax
	orl	(%rdx), %eax
	movl	%eax, (%rbx)
	cmpl	$-1, %r15d
	jge	LBB0_6
LBB0_18:
	movl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	_EADDRINUSE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_6:
	addl	$2, %r15d
	xorl	%r13d, %r13d
	movq	_ATIF_PROBE_FAIL@GOTPCREL(%rip), %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	callq	_htons
	movl	%eax, 16(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=2
	movl	(%r14), %ecx
	movl	(%rbx), %eax
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	incl	%r15d
	cmpl	$256, %r15d                     ## imm = 0x100
	je	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r12,%r15), %eax
	movzbl	%al, %eax
	movl	%eax, 12(%rbx)
	decl	%eax
	cmpl	$253, %eax
	jae	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%rbx, %rdi
	callq	_aarp_probe_network
	movl	(%rbx), %eax
	movl	(%r14), %ecx
	testl	%eax, %ecx
	jne	LBB0_10
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%rbx), %edi
	callq	_ntohs
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%eax, %ecx
	jge	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	incl	%ecx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rbx), %edi
	callq	_ntohs
	movl	%eax, %ecx
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	incl	%r13d
	cmpl	%r15d, %r13d
	jne	LBB0_7
## %bb.17:
	movl	(%rbx), %eax
	movq	_ATIF_PROBE@GOTPCREL(%rip), %rdx
	jmp	LBB0_18
LBB0_14:
	movq	_ATIF_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATADDR_ANYNET,4,2              ## @ATADDR_ANYNET
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_ATADDR_ANYNODE,4,2             ## @ATADDR_ANYNODE
	.comm	_ATIF_PROBE,4,2                 ## @ATIF_PROBE
	.comm	_ATIF_PROBE_FAIL,4,2            ## @ATIF_PROBE_FAIL
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.no_dead_strip	_atif_probe_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atif_probe_device
_atif_probe_device:                     ; @atif_probe_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_ntohs
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_ntohs
	sub	w24, w20, w0
	ldr	w0, [x19, #16]
	bl	_ntohs
	mov	x20, x0
	ldr	w22, [x19, #12]
Lloh0:
	adrp	x8, _ATADDR_ANYNET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATADDR_ANYNET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _jiffies@GOTPAGE
Lloh4:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	add	w23, w24, #1
	ldr	w0, [x19, #4]
	bl	_ntohs
	mov	x20, x0
	cbz	w23, LBB0_3
; %bb.2:
	ldr	w8, [x21]
	sdiv	w9, w8, w23
	msub	w8, w9, w23, w8
	add	w20, w8, w20
LBB0_3:
Lloh5:
	adrp	x8, _ATADDR_ANYNODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATADDR_ANYNODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x21]
Lloh8:
	adrp	x21, _ATIF_PROBE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ATIF_PROBE@GOTPAGEOFF]
	cmp	w22, w8
	csel	w22, w9, w22, eq
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	cmn	w24, #1
	b.ge	LBB0_5
LBB0_4:
	ldr	w9, [x21]
	bic	w8, w8, w9
	str	w8, [x19]
Lloh10:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_5:
	mov	w23, #0
	add	w24, w24, #2
Lloh13:
	adrp	x25, _ATIF_PROBE_FAIL@GOTPAGE
Lloh14:
	ldr	x25, [x25, _ATIF_PROBE_FAIL@GOTPAGEOFF]
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x0, x20
	bl	_htons
	mov	w26, #0
	str	w0, [x19, #16]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w9, [x25]
	ldr	w8, [x19]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	bic	w8, w8, w9
	str	w8, [x19]
	add	w26, w26, #1
	cmp	w26, #256
	b.eq	LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w22, w26
	and	w8, w8, #0xff
	str	w8, [x19, #12]
	sub	w8, w8, #1
	cmp	w8, #253
	b.hs	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x19
	bl	_aarp_probe_network
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_8
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #8]
	bl	_ntohs
	cmp	w20, w0
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #4]
	bl	_ntohs
	mov	x20, x0
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w23, #1
	cmp	w23, w24
	b.ne	LBB0_6
; %bb.15:
	ldr	w8, [x19]
	b	LBB0_4
LBB0_16:
	mov	w0, #0
	ldr	w9, [x21]
	bic	w8, w8, w9
	str	w8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATADDR_ANYNET,4,2              ; @ATADDR_ANYNET
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_ATADDR_ANYNODE,4,2             ; @ATADDR_ANYNODE
	.comm	_ATIF_PROBE,4,2                 ; @ATIF_PROBE
	.comm	_ATIF_PROBE_FAIL,4,2            ; @ATIF_PROBE_FAIL
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.no_dead_strip	_atif_probe_device
.subsections_via_symbols
