	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_attach
_emac_attach:                           ## @emac_attach
	.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
	movl	%edi, %r14d
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	callq	_device_get_softc
	movq	%rax, %r13
	movl	%r14d, 64(%rax)
	leaq	56(%rax), %rbx
	movl	%r14d, %edi
	callq	_device_get_nameunit
	movq	_MTX_NETWORK_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MTX_DEF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mtx_init
	leaq	60(%r13), %rdi
	xorl	%r12d, %r12d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_callout_init_mtx
	movl	$0, -52(%rbp)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-52(%rbp), %rdx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, 40(%r13)
	movq	_ENXIO@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rdi
	callq	_rman_get_bustag
	movl	%eax, 52(%r13)
	movq	40(%r13), %rdi
	callq	_rman_get_bushandle
	movl	%eax, 48(%r13)
	movl	$0, -52(%rbp)
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_SHAREABLE@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	leaq	-52(%rbp), %rdx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r14d, %edi
	callq	_device_get_sysctl_ctx
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_device_get_sysctl_tree
	movl	%eax, %edi
	callq	_SYSCTL_CHILDREN
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CTLTYPE_INT@GOTPCREL(%rip), %rcx
	movq	_CTLFLAG_RW@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rcx), %r8d
	movq	_sysctl_hw_emac_proc_limit@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	L_.str.4(%rip), %r10
	leaq	L_.str.3(%rip), %r11
	leaq	L_.str.2(%rip), %rcx
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	%rcx, %r15
	movq	%r13, %r9
	pushq	%r10
	pushq	%r11
	pushq	%rbx
	pushq	$0
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movq	_EMAC_PROC_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movl	%r14d, %edi
	callq	_device_get_name
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_device_get_unit
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_resource_int_value
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	(%r13), %rax
	movq	_EMAC_PROC_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.7:
	movq	_EMAC_PROC_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_9
LBB0_8:
	movq	_EMAC_PROC_DEFAULT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	(%rbx), %rax
	movq	%rax, (%r13)
LBB0_9:
	movq	%r13, %rdi
	callq	_emac_sys_setup
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	movq	%r13, %rdi
	callq	_emac_reset
	movq	_IFT_ETHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_if_alloc
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movq	%r13, 32(%rax)
	leaq	24(%r13), %rsi
	movq	_emac_ifmedia_upd@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_emac_ifmedia_sts@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_BMSR_DEFCAPMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MII_PHY_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MII_OFFSET_ANY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	subq	$8, %rsp
	movl	%r14d, %edi
	movq	%rbx, %rdx
	pushq	$0
	pushq	%rax
	pushq	%r10
	callq	_mii_attach
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movl	(%r15), %r15d
	testl	%r15d, %r15d
	je	LBB0_17
LBB0_16:
	movl	%r14d, %edi
	callq	_emac_detach
	movl	%r15d, %r12d
LBB0_17:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOSPC@GOTPCREL(%rip), %r15
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_2
LBB0_14:
	movl	%r14d, %edi
	callq	_device_get_name
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_device_get_unit
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_if_initname
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rax
	movq	_IFF_SIMPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_emac_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_emac_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_emac_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	_IFQ_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IFQ_SET_MAXLEN
	movq	%r13, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_emac_get_hwaddr
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ether_ifattach
	movq	_IFCAP_VLAN_MTU@GOTPCREL(%rip), %rax
	movl	8(%rbx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	%ecx, 12(%rbx)
	movl	$4, 4(%rbx)
	movq	_INTR_TYPE_NET@GOTPCREL(%rip), %rax
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	16(%r13), %rsi
	movq	_emac_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rax
	addq	$8, %rax
	subq	$8, %rsp
	xorl	%r12d, %r12d
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	movq	%r13, %r9
	pushq	%rax
	callq	_bus_setup_intr
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	%rbx, %rdi
	callq	_ether_ifdetach
	jmp	LBB0_16
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHER_ADDR_LEN,4,2             ## @ETHER_ADDR_LEN
	.comm	_MTX_NETWORK_LOCK,4,2           ## @MTX_NETWORK_LOCK
	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to map memory\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
	.comm	_RF_SHAREABLE,4,2               ## @RF_SHAREABLE
L_.str.1:                               ## @.str.1
	.asciz	"cannot allocate IRQ resources.\n"

	.comm	_OID_AUTO,4,2                   ## @OID_AUTO
L_.str.2:                               ## @.str.2
	.asciz	"process_limit"

	.comm	_CTLTYPE_INT,4,2                ## @CTLTYPE_INT
	.comm	_CTLFLAG_RW,4,2                 ## @CTLFLAG_RW
	.comm	_sysctl_hw_emac_proc_limit,4,2  ## @sysctl_hw_emac_proc_limit
L_.str.3:                               ## @.str.3
	.asciz	"I"

L_.str.4:                               ## @.str.4
	.asciz	"max number of Rx events to process"

	.comm	_EMAC_PROC_DEFAULT,8,3          ## @EMAC_PROC_DEFAULT
	.comm	_EMAC_PROC_MIN,8,3              ## @EMAC_PROC_MIN
	.comm	_EMAC_PROC_MAX,8,3              ## @EMAC_PROC_MAX
L_.str.5:                               ## @.str.5
	.asciz	"process_limit value out of range; using default: %d\n"

	.comm	_IFT_ETHER,4,2                  ## @IFT_ETHER
L_.str.6:                               ## @.str.6
	.asciz	"unable to allocate ifp\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_emac_ifmedia_upd,4,2           ## @emac_ifmedia_upd
	.comm	_emac_ifmedia_sts,4,2           ## @emac_ifmedia_sts
	.comm	_BMSR_DEFCAPMASK,4,2            ## @BMSR_DEFCAPMASK
	.comm	_MII_PHY_ANY,4,2                ## @MII_PHY_ANY
	.comm	_MII_OFFSET_ANY,4,2             ## @MII_OFFSET_ANY
L_.str.7:                               ## @.str.7
	.asciz	"PHY probe failed\n"

	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_IFF_SIMPLEX,4,2                ## @IFF_SIMPLEX
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_emac_start,4,2                 ## @emac_start
	.comm	_emac_ioctl,4,2                 ## @emac_ioctl
	.comm	_emac_init,4,2                  ## @emac_init
	.comm	_IFQ_MAXLEN,4,2                 ## @IFQ_MAXLEN
	.comm	_IFCAP_VLAN_MTU,4,2             ## @IFCAP_VLAN_MTU
	.comm	_INTR_TYPE_NET,4,2              ## @INTR_TYPE_NET
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_emac_intr,4,2                  ## @emac_intr
L_.str.8:                               ## @.str.8
	.asciz	"could not set up interrupt handler.\n"

	.no_dead_strip	_emac_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_attach
_emac_attach:                           ; @emac_attach
	.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
	sub	sp, sp, #16
	mov	x19, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _ETHER_ADDR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETHER_ADDR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #64]
	add	x22, x0, #56
	mov	x0, x19
	bl	_device_get_nameunit
	mov	x1, x0
Lloh8:
	adrp	x8, _MTX_NETWORK_LOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MTX_NETWORK_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_mtx_init
	add	x0, x20, #60
	mov	x1, x22
	mov	w2, #0
	bl	_callout_init_mtx
	stur	wzr, [x29, #-76]
Lloh14:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x22, _RF_ACTIVE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _RF_ACTIVE@GOTPAGEOFF]
	ldr	w3, [x22]
	sub	x2, x29, #76
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20, #40]
	cbz	x0, LBB0_10
; %bb.1:
	bl	_rman_get_bustag
	str	w0, [x20, #52]
	ldr	x0, [x20, #40]
	bl	_rman_get_bushandle
	str	w0, [x20, #48]
	stur	wzr, [x29, #-76]
Lloh19:
	adrp	x8, _SYS_RES_IRQ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SYS_RES_IRQ@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _RF_SHAREABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RF_SHAREABLE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w3, w9, w8
	sub	x2, x29, #76
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20, #16]
	cbz	x0, LBB0_11
; %bb.2:
	mov	x0, x19
	bl	_device_get_sysctl_ctx
	mov	x22, x0
	mov	x0, x19
	bl	_device_get_sysctl_tree
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
Lloh25:
	adrp	x8, _OID_AUTO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _OID_AUTO@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _CTLTYPE_INT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CTLTYPE_INT@GOTPAGEOFF]
Lloh30:
	adrp	x9, _CTLFLAG_RW@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CTLFLAG_RW@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh34:
	adrp	x8, _sysctl_hw_emac_proc_limit@GOTPAGE
Lloh35:
	ldr	x8, [x8, _sysctl_hw_emac_proc_limit@GOTPAGEOFF]
Lloh36:
	ldr	w7, [x8]
Lloh37:
	adrp	x8, l_.str.4@PAGE
Lloh38:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh39:
	adrp	x9, l_.str.3@PAGE
Lloh40:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x9, x8, [sp, #-16]!
Lloh41:
	adrp	x23, l_.str.2@PAGE
Lloh42:
	add	x23, x23, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x3, x23
	mov	x5, x20
	mov	w6, #0
	bl	_SYSCTL_ADD_PROC
	add	sp, sp, #16
Lloh43:
	adrp	x25, _EMAC_PROC_DEFAULT@GOTPAGE
Lloh44:
	ldr	x25, [x25, _EMAC_PROC_DEFAULT@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x20]
	mov	x0, x19
	bl	_device_get_name
	mov	x22, x0
	mov	x0, x19
	bl	_device_get_unit
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	mov	x3, x20
	bl	_resource_int_value
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x20]
Lloh45:
	adrp	x9, _EMAC_PROC_MIN@GOTPAGE
Lloh46:
	ldr	x9, [x9, _EMAC_PROC_MIN@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.4:
Lloh48:
	adrp	x9, _EMAC_PROC_MAX@GOTPAGE
Lloh49:
	ldr	x9, [x9, _EMAC_PROC_MAX@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
LBB0_5:
	ldr	x8, [x25]
	str	x8, [sp, #-16]!
Lloh51:
	adrp	x1, l_.str.5@PAGE
Lloh52:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	add	sp, sp, #16
	ldr	x8, [x25]
	str	x8, [x20]
LBB0_6:
	mov	x0, x20
	bl	_emac_sys_setup
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.7:
	mov	x0, x20
	bl	_emac_reset
Lloh53:
	adrp	x8, _IFT_ETHER@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IFT_ETHER@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	bl	_if_alloc
	str	x0, [x20, #32]
	cbz	x0, LBB0_16
; %bb.8:
	mov	x22, x0
	str	x20, [x0, #32]
	add	x1, x20, #24
Lloh56:
	adrp	x8, _emac_ifmedia_upd@GOTPAGE
Lloh57:
	ldr	x8, [x8, _emac_ifmedia_upd@GOTPAGEOFF]
Lloh58:
	ldr	w3, [x8]
Lloh59:
	adrp	x8, _emac_ifmedia_sts@GOTPAGE
Lloh60:
	ldr	x8, [x8, _emac_ifmedia_sts@GOTPAGEOFF]
Lloh61:
	ldr	w4, [x8]
Lloh62:
	adrp	x8, _BMSR_DEFCAPMASK@GOTPAGE
Lloh63:
	ldr	x8, [x8, _BMSR_DEFCAPMASK@GOTPAGEOFF]
Lloh64:
	ldr	w5, [x8]
Lloh65:
	adrp	x8, _MII_PHY_ANY@GOTPAGE
Lloh66:
	ldr	x8, [x8, _MII_PHY_ANY@GOTPAGEOFF]
Lloh67:
	ldr	w6, [x8]
Lloh68:
	adrp	x8, _MII_OFFSET_ANY@GOTPAGE
Lloh69:
	ldr	x8, [x8, _MII_OFFSET_ANY@GOTPAGEOFF]
Lloh70:
	ldr	w7, [x8]
	str	wzr, [sp, #-16]!
	mov	x0, x19
	mov	x2, x22
	bl	_mii_attach
	add	sp, sp, #16
	cbz	w0, LBB0_17
; %bb.9:
	mov	x23, x0
Lloh71:
	adrp	x1, l_.str.7@PAGE
Lloh72:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	b	LBB0_13
LBB0_10:
Lloh73:
	adrp	x20, _ENXIO@GOTPAGE
Lloh74:
	ldr	x20, [x20, _ENXIO@GOTPAGEOFF]
Lloh75:
	adrp	x1, l_.str@PAGE
Lloh76:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh77:
	adrp	x20, _ENXIO@GOTPAGE
Lloh78:
	ldr	x20, [x20, _ENXIO@GOTPAGEOFF]
Lloh79:
	adrp	x1, l_.str.1@PAGE
Lloh80:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_device_printf
	ldr	w23, [x20]
	cbz	w23, LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_emac_detach
LBB0_14:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh81:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh82:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.15:
	mov	x0, x23
	sub	sp, x29, #64
	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_16:
Lloh84:
	adrp	x20, _ENOSPC@GOTPAGE
Lloh85:
	ldr	x20, [x20, _ENOSPC@GOTPAGEOFF]
Lloh86:
	adrp	x1, l_.str.6@PAGE
Lloh87:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_12
LBB0_17:
	mov	x0, x19
	bl	_device_get_name
	mov	x23, x0
	mov	x0, x19
	bl	_device_get_unit
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_if_initname
Lloh88:
	adrp	x8, _IFF_BROADCAST@GOTPAGE
Lloh89:
	ldr	x8, [x8, _IFF_BROADCAST@GOTPAGEOFF]
Lloh90:
	adrp	x9, _IFF_SIMPLEX@GOTPAGE
Lloh91:
	ldr	x9, [x9, _IFF_SIMPLEX@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
Lloh93:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh94:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh95:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh96:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x22]
Lloh97:
	adrp	x8, _emac_start@GOTPAGE
Lloh98:
	ldr	x8, [x8, _emac_start@GOTPAGEOFF]
Lloh99:
	ldr	w8, [x8]
	str	w8, [x22, #28]
Lloh100:
	adrp	x8, _emac_ioctl@GOTPAGE
Lloh101:
	ldr	x8, [x8, _emac_ioctl@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
Lloh103:
	adrp	x9, _emac_init@GOTPAGE
Lloh104:
	ldr	x9, [x9, _emac_init@GOTPAGEOFF]
Lloh105:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #20]
	add	x0, x22, #16
Lloh106:
	adrp	x8, _IFQ_MAXLEN@GOTPAGE
Lloh107:
	ldr	x8, [x8, _IFQ_MAXLEN@GOTPAGEOFF]
Lloh108:
	ldr	w1, [x8]
	bl	_IFQ_SET_MAXLEN
	mov	x0, x20
	mov	x1, x21
	bl	_emac_get_hwaddr
	mov	x0, x22
	mov	x1, x21
	bl	_ether_ifattach
Lloh109:
	adrp	x8, _IFCAP_VLAN_MTU@GOTPAGE
Lloh110:
	ldr	x8, [x8, _IFCAP_VLAN_MTU@GOTPAGEOFF]
Lloh111:
	ldr	w8, [x8]
	ldr	w9, [x22, #8]
	orr	w8, w9, w8
	stp	w8, w8, [x22, #8]
	mov	w9, #4
	str	w9, [x22, #4]
	ldr	x1, [x20, #16]
Lloh112:
	adrp	x8, _INTR_TYPE_NET@GOTPAGE
Lloh113:
	ldr	x8, [x8, _INTR_TYPE_NET@GOTPAGEOFF]
Lloh114:
	ldr	w8, [x8]
Lloh115:
	adrp	x9, _INTR_MPSAFE@GOTPAGE
Lloh116:
	ldr	x9, [x9, _INTR_MPSAFE@GOTPAGEOFF]
Lloh117:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh118:
	adrp	x8, _emac_intr@GOTPAGE
Lloh119:
	ldr	x8, [x8, _emac_intr@GOTPAGEOFF]
Lloh120:
	ldr	w4, [x8]
	add	x6, x20, #8
	mov	x0, x19
	mov	x3, #0
	mov	x5, x20
	bl	_bus_setup_intr
	mov	x23, x0
	cbz	w0, LBB0_14
; %bb.18:
Lloh121:
	adrp	x1, l_.str.8@PAGE
Lloh122:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	mov	x0, x22
	bl	_ether_ifdetach
	b	LBB0_13
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh92
	.loh AdrpAdd	Lloh121, Lloh122
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHER_ADDR_LEN,4,2             ; @ETHER_ADDR_LEN
	.comm	_MTX_NETWORK_LOCK,4,2           ; @MTX_NETWORK_LOCK
	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to map memory\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
	.comm	_RF_SHAREABLE,4,2               ; @RF_SHAREABLE
l_.str.1:                               ; @.str.1
	.asciz	"cannot allocate IRQ resources.\n"

	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
l_.str.2:                               ; @.str.2
	.asciz	"process_limit"

	.comm	_CTLTYPE_INT,4,2                ; @CTLTYPE_INT
	.comm	_CTLFLAG_RW,4,2                 ; @CTLFLAG_RW
	.comm	_sysctl_hw_emac_proc_limit,4,2  ; @sysctl_hw_emac_proc_limit
l_.str.3:                               ; @.str.3
	.asciz	"I"

l_.str.4:                               ; @.str.4
	.asciz	"max number of Rx events to process"

	.comm	_EMAC_PROC_DEFAULT,8,3          ; @EMAC_PROC_DEFAULT
	.comm	_EMAC_PROC_MIN,8,3              ; @EMAC_PROC_MIN
	.comm	_EMAC_PROC_MAX,8,3              ; @EMAC_PROC_MAX
l_.str.5:                               ; @.str.5
	.asciz	"process_limit value out of range; using default: %d\n"

	.comm	_IFT_ETHER,4,2                  ; @IFT_ETHER
l_.str.6:                               ; @.str.6
	.asciz	"unable to allocate ifp\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_emac_ifmedia_upd,4,2           ; @emac_ifmedia_upd
	.comm	_emac_ifmedia_sts,4,2           ; @emac_ifmedia_sts
	.comm	_BMSR_DEFCAPMASK,4,2            ; @BMSR_DEFCAPMASK
	.comm	_MII_PHY_ANY,4,2                ; @MII_PHY_ANY
	.comm	_MII_OFFSET_ANY,4,2             ; @MII_OFFSET_ANY
l_.str.7:                               ; @.str.7
	.asciz	"PHY probe failed\n"

	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_IFF_SIMPLEX,4,2                ; @IFF_SIMPLEX
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_emac_start,4,2                 ; @emac_start
	.comm	_emac_ioctl,4,2                 ; @emac_ioctl
	.comm	_emac_init,4,2                  ; @emac_init
	.comm	_IFQ_MAXLEN,4,2                 ; @IFQ_MAXLEN
	.comm	_IFCAP_VLAN_MTU,4,2             ; @IFCAP_VLAN_MTU
	.comm	_INTR_TYPE_NET,4,2              ; @INTR_TYPE_NET
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_emac_intr,4,2                  ; @emac_intr
l_.str.8:                               ; @.str.8
	.asciz	"could not set up interrupt handler.\n"

	.no_dead_strip	_emac_attach
.subsections_via_symbols
