	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DevicePresent
_DevicePresent:                         ## @DevicePresent
	.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
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_DC21040@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	movq	_EISA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.10:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enet_addr_rst                  ## TAILCALL
LBB0_3:
	movq	_ETH_ALEN@GOTPCREL(%rip), %r12
	cmpl	$2, (%r12)
	jl	LBB0_9
## %bb.4:
	addq	$16, %r15
	movq	_SROM_HWADD@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movl	%r13d, %esi
	sarl	%esi
	movl	%r14d, %edi
	callq	_srom_rd
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, (%r15,%r13)
	cmpl	$4, (%r12)
	jl	LBB0_7
## %bb.5:
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SROM_HWADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	%esi
	addl	%r12d, %esi
	movl	%r14d, %edi
	callq	_srom_rd
	addl	%eax, %ebx
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, (%r15,%r13)
	incl	%r12d
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
	cmpl	%eax, %r12d
	jl	LBB0_6
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	cmpl	$196605, %ebx                   ## imm = 0x2FFFD
	jne	LBB0_11
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%edi, %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outl                           ## TAILCALL
LBB0_11:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_srom_rd
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, (%r15)
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_srom_rd
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_de4x5_dbg_srom                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DC21040,8,3                    ## @DC21040
	.comm	_EISA,8,3                       ## @EISA
	.comm	_SROM_HWADD,4,2                 ## @SROM_HWADD
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_DevicePresent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DevicePresent
_DevicePresent:                         ; @DevicePresent
	.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, x1
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DC21040@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DC21040@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _EISA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EISA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	mov	x0, x19
	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
	b	_enet_addr_rst
LBB0_3:
Lloh6:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.4:
	add	x20, x0, #16
Lloh8:
	adrp	x23, _SROM_HWADD@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SROM_HWADD@GOTPAGEOFF]
	ldrsw	x24, [x23]
	asr	w1, w24, #1
	mov	x0, x19
	bl	_srom_rd
	mov	x21, x0
	bl	_cpu_to_le16
	str	x0, [x20, x24]
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_7
; %bb.5:
	mov	w25, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	add	w1, w25, w8, asr #1
	mov	x0, x19
	bl	_srom_rd
	add	w21, w21, w0
	bl	_cpu_to_le16
	str	x0, [x20, x24]
	add	w25, w25, #1
	ldr	w8, [x22]
	cmp	w25, w8, asr #1
	b.lt	LBB0_6
LBB0_7:
	cmp	w21, #0
	mov	w8, #65533
	movk	w8, #2, lsl #16
	ccmp	w21, w8, #4, ne
	b.ne	LBB0_10
LBB0_8:
	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
LBB0_9:
	mov	w0, #0
	mov	x1, x19
	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
	b	_outl
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_srom_rd
	bl	_cpu_to_le16
	str	x0, [x20]
	mov	x0, x19
	mov	w1, #1
	bl	_srom_rd
	bl	_cpu_to_le16
	str	x0, [x20, #8]
	mov	x0, x20
	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
	b	_de4x5_dbg_srom
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DC21040,8,3                    ; @DC21040
	.comm	_EISA,8,3                       ; @EISA
	.comm	_SROM_HWADD,4,2                 ; @SROM_HWADD
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_DevicePresent
.subsections_via_symbols
