	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function llan_attach
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_llan_attach:                           ## @llan_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r15
	movl	%ebx, 84(%rax)
	movl	%ebx, %edi
	callq	_ofw_bus_get_node
	movl	%eax, %r14d
	movq	8(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	$8, %ecx
	callq	_OF_getprop
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%r15), %rsi
	leaq	8(%rsi), %rdi
	movq	%rax, %rdx
	callq	_memmove
	movq	8(%r15), %rdi
	movl	$2, %esi
	callq	_bzero
LBB0_2:
	leaq	80(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	leaq	56(%r15), %r12
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_mtx_init
	leaq	72(%r15), %rdx
	movq	$0, 72(%r15)
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	callq	_bus_alloc_resource_any
	movl	%eax, 64(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_INTR_TYPE_MISC@GOTPCREL(%rip), %rcx
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_INTR_ENTROPY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_llan_intr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	60(%r15), %r10
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	pushq	%r10
	callq	_bus_setup_intr
	addq	$16, %rsp
	movl	%ebx, %edi
	callq	_bus_get_dma_tag
	movq	_BUS_SPACE_MAXADDR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	movq	%rdx, %r14
	movq	_LLAN_RX_BUF_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_BUS_SPACE_MAXSIZE_32BIT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	52(%r15), %rdi
	subq	$64, %rsp
	movq	%rdi, 56(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rsp)
	movl	%esi, 24(%rsp)
	movl	%edx, 8(%rsp)
	movl	$0, 32(%rsp)
	movl	$1, 16(%rsp)
	movq	$0, (%rsp)
	movl	%eax, %edi
	movl	$16, %esi
	xorl	%edx, %edx
	movl	%ecx, %r8d
	xorl	%r9d, %r9d
	callq	_bus_dma_tag_create
	addq	$64, %rsp
	movl	%ebx, %edi
	callq	_bus_get_dma_tag
	movl	(%r14), %ecx
	movq	_BUS_SPACE_MAXSIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	(%r13), %esi
	leaq	32(%r15), %rdi
	subq	$64, %rsp
	movq	%rdi, 56(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rsp)
	movl	%esi, 24(%rsp)
	movl	%edx, 8(%rsp)
	movl	$0, 32(%rsp)
	movl	$1, 16(%rsp)
	movq	$0, (%rsp)
	movl	%eax, %edi
	movl	$4, %esi
	xorl	%edx, %edx
	movl	%ecx, %r8d
	xorl	%r9d, %r9d
	callq	_bus_dma_tag_create
	addq	$64, %rsp
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_bus_get_dma_tag
	movq	_BUS_SPACE_MAXADDR_32BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_BUS_SPACE_MAXADDR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	(%r14), %r10d
	movl	(%r13), %r14d
	movq	_busdma_lock_mutex@GOTPCREL(%rip), %r11
	leaq	40(%r15), %rbx
	movl	%eax, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%r12
	pushq	(%r11)
	pushq	$0
	pushq	%r14
	pushq	$6
	pushq	%r10
	pushq	$0
	callq	_bus_dma_tag_create
	addq	$64, %rsp
	movl	52(%r15), %edi
	leaq	44(%r15), %rsi
	movq	_BUS_DMA_WAITOK@GOTPCREL(%rip), %rax
	movq	_BUS_DMA_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	48(%r15), %rcx
	callq	_bus_dmamem_alloc
	movl	52(%r15), %edi
	movl	44(%r15), %edx
	movl	48(%r15), %esi
	movq	_LLAN_RX_BUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_llan_rx_load_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	movq	%r15, %r9
	pushq	$0
	callq	_bus_dmamap_load
	addq	$16, %rsp
	movl	40(%r15), %edi
	leaq	36(%r15), %rdx
	xorl	%esi, %esi
	callq	_bus_dmamap_create
	movq	_LLAN_MAX_RX_PACKETS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.5:
	movq	24(%r15), %rdx
	movl	$8, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r15), %edi
	addq	%rbx, %rdx
	xorl	%esi, %esi
	callq	_bus_dmamap_create
	movq	24(%r15), %rdx
	movq	$0, -8(%rdx,%rbx)
	incq	%r12
	movslq	(%r14), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_6
LBB0_7:
	movq	_IFT_ETHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_if_alloc
	movq	%rax, %r12
	movq	%rax, (%r15)
	movq	%r15, 56(%rax)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_device_get_name
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_device_get_unit
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_if_initname
	movq	_ETHERMTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 48(%rcx)
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rax
	movq	_IFF_SIMPLEX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rcx)
	movq	$0, 40(%rcx)
	movq	_llan_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	_llan_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	_llan_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	%r15, %rbx
	addq	$16, %rbx
	movq	_IFM_IMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_llan_media_change@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_llan_media_status@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_ifmedia_init
	movq	_IFM_ETHER@GOTPCREL(%rip), %r14
	movq	_IFM_AUTO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ifmedia_add
	movl	(%r12), %esi
	orl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ifmedia_set
	movq	(%r15), %rdi
	addq	$4, %rdi
	movq	_LLAN_MAX_TX_PACKETS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_IFQ_SET_MAXLEN
	movl	(%rbx), %eax
	movq	(%r15), %rdi
	movl	%eax, 4(%rdi)
	addq	$4, %rdi
	callq	_IFQ_SET_READY
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	addq	$8, %rsi
	callq	_ether_ifattach
	movq	(%r15), %rdi
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_if_link_state_change
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_printf
	movq	%r12, %rdi
	callq	_mtx_destroy
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"local-mac-address"

	.comm	_ETHER_ADDR_LEN,8,3             ## @ETHER_ADDR_LEN
L_.str.1:                               ## @.str.1
	.asciz	"reg"

L_.str.2:                               ## @.str.2
	.asciz	"llan"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
L_.str.3:                               ## @.str.3
	.asciz	"Could not allocate IRQ\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_INTR_TYPE_MISC,4,2             ## @INTR_TYPE_MISC
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_INTR_ENTROPY,4,2               ## @INTR_ENTROPY
	.comm	_llan_intr,4,2                  ## @llan_intr
	.comm	_BUS_SPACE_MAXADDR,4,2          ## @BUS_SPACE_MAXADDR
	.comm	_LLAN_RX_BUF_LEN,4,2            ## @LLAN_RX_BUF_LEN
	.comm	_BUS_SPACE_MAXSIZE_32BIT,4,2    ## @BUS_SPACE_MAXSIZE_32BIT
	.comm	_BUS_SPACE_MAXSIZE,4,2          ## @BUS_SPACE_MAXSIZE
	.comm	_BUS_SPACE_MAXADDR_32BIT,4,2    ## @BUS_SPACE_MAXADDR_32BIT
	.comm	_busdma_lock_mutex,8,3          ## @busdma_lock_mutex
	.comm	_BUS_DMA_WAITOK,4,2             ## @BUS_DMA_WAITOK
	.comm	_BUS_DMA_ZERO,4,2               ## @BUS_DMA_ZERO
	.comm	_llan_rx_load_cb,4,2            ## @llan_rx_load_cb
	.comm	_LLAN_MAX_RX_PACKETS,4,2        ## @LLAN_MAX_RX_PACKETS
	.comm	_IFT_ETHER,4,2                  ## @IFT_ETHER
	.comm	_ETHERMTU,4,2                   ## @ETHERMTU
	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_IFF_SIMPLEX,4,2                ## @IFF_SIMPLEX
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_llan_start,4,2                 ## @llan_start
	.comm	_llan_ioctl,4,2                 ## @llan_ioctl
	.comm	_llan_init,4,2                  ## @llan_init
	.comm	_IFM_IMASK,4,2                  ## @IFM_IMASK
	.comm	_llan_media_change,4,2          ## @llan_media_change
	.comm	_llan_media_status,4,2          ## @llan_media_status
	.comm	_IFM_ETHER,4,2                  ## @IFM_ETHER
	.comm	_IFM_AUTO,4,2                   ## @IFM_AUTO
	.comm	_LLAN_MAX_TX_PACKETS,4,2        ## @LLAN_MAX_TX_PACKETS
	.comm	_LINK_STATE_UP,4,2              ## @LINK_STATE_UP
	.no_dead_strip	_llan_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function llan_attach
_llan_attach:                           ; @llan_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
	bl	_device_get_softc
	mov	x19, x0
	str	w20, [x0, #84]
	mov	x0, x20
	bl	_ofw_bus_get_node
	mov	x21, x0
	ldr	x2, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #8
	bl	_OF_getprop
Lloh2:
	adrp	x8, _ETHER_ADDR_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETHER_ADDR_LEN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	x1, [x19, #8]
	add	x0, x1, #8
	bl	_memmove
	ldr	x0, [x19, #8]
	mov	w1, #2
	bl	_bzero
LBB0_2:
	add	x2, x19, #80
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	add	x21, x19, #56
Lloh7:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_mtx_init
	mov	x22, x19
	str	xzr, [x22, #72]!
Lloh12:
	adrp	x8, _SYS_RES_IRQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYS_RES_IRQ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _RF_ACTIVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RF_ACTIVE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_bus_alloc_resource_any
	stur	w0, [x22, #-8]
	cbz	w0, LBB0_7
; %bb.3:
	mov	x1, x0
Lloh18:
	adrp	x8, _INTR_TYPE_MISC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INTR_TYPE_MISC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _INTR_MPSAFE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _INTR_MPSAFE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _INTR_ENTROPY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _INTR_ENTROPY@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh27:
	adrp	x8, _llan_intr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _llan_intr@GOTPAGEOFF]
Lloh29:
	ldr	w4, [x8]
	add	x6, x19, #60
	mov	x0, x20
	mov	x3, #0
	mov	x5, x19
	bl	_bus_setup_intr
	mov	x0, x20
	bl	_bus_get_dma_tag
Lloh30:
	adrp	x23, _BUS_SPACE_MAXADDR@GOTPAGE
Lloh31:
	ldr	x23, [x23, _BUS_SPACE_MAXADDR@GOTPAGEOFF]
Lloh32:
	adrp	x22, _LLAN_RX_BUF_LEN@GOTPAGE
Lloh33:
	ldr	x22, [x22, _LLAN_RX_BUF_LEN@GOTPAGEOFF]
	ldr	w3, [x23]
	ldr	w7, [x22]
Lloh34:
	adrp	x24, _BUS_SPACE_MAXSIZE_32BIT@GOTPAGE
Lloh35:
	ldr	x24, [x24, _BUS_SPACE_MAXSIZE_32BIT@GOTPAGEOFF]
	ldr	w8, [x24]
	add	x9, x19, #52
	stp	xzr, xzr, [sp, #16]
	str	x9, [sp, #32]
	stp	w8, wzr, [sp, #4]
	mov	w25, #1
	str	w25, [sp]
	mov	w1, #16
	mov	w2, #0
	mov	x4, x3
	mov	x5, #0
	mov	x6, #0
	bl	_bus_dma_tag_create
	mov	x0, x20
	bl	_bus_get_dma_tag
	ldr	w3, [x23]
Lloh36:
	adrp	x26, _BUS_SPACE_MAXSIZE@GOTPAGE
Lloh37:
	ldr	x26, [x26, _BUS_SPACE_MAXSIZE@GOTPAGEOFF]
	ldr	w7, [x26]
	ldr	w8, [x24]
	add	x9, x19, #32
	stp	xzr, xzr, [sp, #16]
	str	x9, [sp, #32]
	stp	w8, wzr, [sp, #4]
	str	w25, [sp]
	mov	w1, #4
	mov	w2, #0
	mov	x4, x3
	mov	x5, #0
	mov	x6, #0
	bl	_bus_dma_tag_create
	mov	x0, x20
	bl	_bus_get_dma_tag
Lloh38:
	adrp	x8, _BUS_SPACE_MAXADDR_32BIT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BUS_SPACE_MAXADDR_32BIT@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
	ldr	w4, [x23]
	ldr	w7, [x26]
	ldr	w8, [x24]
Lloh41:
	adrp	x9, _busdma_lock_mutex@GOTPAGE
Lloh42:
	ldr	x9, [x9, _busdma_lock_mutex@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	add	x10, x19, #40
	stp	x21, x10, [sp, #24]
	str	x9, [sp, #16]
	stp	w8, wzr, [sp, #4]
	mov	w9, #6
	str	w9, [sp]
	mov	w1, #1
	mov	w2, #0
	mov	x5, #0
	mov	x6, #0
	bl	_bus_dma_tag_create
	ldr	w0, [x19, #52]
	add	x1, x19, #44
Lloh44:
	adrp	x8, _BUS_DMA_WAITOK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BUS_DMA_WAITOK@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _BUS_DMA_ZERO@GOTPAGE
Lloh48:
	ldr	x9, [x9, _BUS_DMA_ZERO@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x3, x19, #48
	bl	_bus_dmamem_alloc
	ldp	w1, w0, [x19, #48]
	ldr	w2, [x19, #44]
	ldr	w3, [x22]
Lloh50:
	adrp	x8, _llan_rx_load_cb@GOTPAGE
Lloh51:
	ldr	x8, [x8, _llan_rx_load_cb@GOTPAGEOFF]
Lloh52:
	ldr	w4, [x8]
	mov	x5, x19
	mov	w6, #0
	bl	_bus_dmamap_load
	ldr	w0, [x19, #40]
	add	x2, x19, #36
	mov	w1, #0
	bl	_bus_dmamap_create
Lloh53:
	adrp	x21, _LLAN_MAX_RX_PACKETS@GOTPAGE
Lloh54:
	ldr	x21, [x21, _LLAN_MAX_RX_PACKETS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
	mov	x23, #0
	ldr	x8, [x19, #24]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	add	x8, x8, x22
	add	x2, x8, #8
	mov	w1, #0
	bl	_bus_dmamap_create
	ldr	x8, [x19, #24]
	str	xzr, [x8, x22]
	add	x23, x23, #1
	ldrsw	x9, [x21]
	add	x22, x22, #16
	cmp	x23, x9
	b.lt	LBB0_5
LBB0_6:
Lloh55:
	adrp	x8, _IFT_ETHER@GOTPAGE
Lloh56:
	ldr	x8, [x8, _IFT_ETHER@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	bl	_if_alloc
	mov	x21, x0
	str	x0, [x19]
	str	x19, [x0, #56]
	mov	x0, x20
	bl	_device_get_name
	mov	x22, x0
	mov	x0, x20
	bl	_device_get_unit
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_if_initname
Lloh58:
	adrp	x8, _ETHERMTU@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ETHERMTU@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	ldr	x9, [x19]
Lloh61:
	adrp	x10, _IFF_BROADCAST@GOTPAGE
Lloh62:
	ldr	x10, [x10, _IFF_BROADCAST@GOTPAGEOFF]
	str	w8, [x9, #48]
Lloh63:
	ldr	w8, [x10]
Lloh64:
	adrp	x10, _IFF_SIMPLEX@GOTPAGE
Lloh65:
	ldr	x10, [x10, _IFF_SIMPLEX@GOTPAGEOFF]
Lloh66:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh67:
	adrp	x10, _IFF_MULTICAST@GOTPAGE
Lloh68:
	ldr	x10, [x10, _IFF_MULTICAST@GOTPAGEOFF]
Lloh69:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x9]
	stp	xzr, xzr, [x9, #32]
	str	xzr, [x9, #24]
Lloh70:
	adrp	x8, _llan_start@GOTPAGE
Lloh71:
	ldr	x8, [x8, _llan_start@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	str	w8, [x9, #16]
Lloh73:
	adrp	x8, _llan_ioctl@GOTPAGE
Lloh74:
	ldr	x8, [x8, _llan_ioctl@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
Lloh76:
	adrp	x10, _llan_init@GOTPAGE
Lloh77:
	ldr	x10, [x10, _llan_init@GOTPAGEOFF]
Lloh78:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #8]
	add	x20, x19, #16
Lloh79:
	adrp	x8, _IFM_IMASK@GOTPAGE
Lloh80:
	ldr	x8, [x8, _IFM_IMASK@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
Lloh82:
	adrp	x8, _llan_media_change@GOTPAGE
Lloh83:
	ldr	x8, [x8, _llan_media_change@GOTPAGEOFF]
Lloh84:
	ldr	w2, [x8]
Lloh85:
	adrp	x8, _llan_media_status@GOTPAGE
Lloh86:
	ldr	x8, [x8, _llan_media_status@GOTPAGEOFF]
Lloh87:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_ifmedia_init
Lloh88:
	adrp	x21, _IFM_ETHER@GOTPAGE
Lloh89:
	ldr	x21, [x21, _IFM_ETHER@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh90:
	adrp	x22, _IFM_AUTO@GOTPAGE
Lloh91:
	ldr	x22, [x22, _IFM_AUTO@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w9, w8
	mov	x0, x20
	mov	w2, #0
	mov	x3, #0
	bl	_ifmedia_add
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_ifmedia_set
	ldr	x8, [x19]
	add	x0, x8, #4
Lloh92:
	adrp	x20, _LLAN_MAX_TX_PACKETS@GOTPAGE
Lloh93:
	ldr	x20, [x20, _LLAN_MAX_TX_PACKETS@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_IFQ_SET_MAXLEN
	ldr	w8, [x20]
	ldr	x0, [x19]
	str	w8, [x0, #4]!
	bl	_IFQ_SET_READY
	ldp	x0, x8, [x19]
	add	x1, x8, #8
	bl	_ether_ifattach
	ldr	x0, [x19]
Lloh94:
	adrp	x8, _LINK_STATE_UP@GOTPAGE
Lloh95:
	ldr	x8, [x8, _LINK_STATE_UP@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	bl	_if_link_state_change
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh97:
	adrp	x1, l_.str.3@PAGE
Lloh98:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	mov	x0, x21
	bl	_mtx_destroy
Lloh99:
	adrp	x8, _ENXIO@GOTPAGE
Lloh100:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh101:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh97, Lloh98
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"local-mac-address"

	.comm	_ETHER_ADDR_LEN,8,3             ; @ETHER_ADDR_LEN
l_.str.1:                               ; @.str.1
	.asciz	"reg"

l_.str.2:                               ; @.str.2
	.asciz	"llan"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
l_.str.3:                               ; @.str.3
	.asciz	"Could not allocate IRQ\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_INTR_TYPE_MISC,4,2             ; @INTR_TYPE_MISC
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_INTR_ENTROPY,4,2               ; @INTR_ENTROPY
	.comm	_llan_intr,4,2                  ; @llan_intr
	.comm	_BUS_SPACE_MAXADDR,4,2          ; @BUS_SPACE_MAXADDR
	.comm	_LLAN_RX_BUF_LEN,4,2            ; @LLAN_RX_BUF_LEN
	.comm	_BUS_SPACE_MAXSIZE_32BIT,4,2    ; @BUS_SPACE_MAXSIZE_32BIT
	.comm	_BUS_SPACE_MAXSIZE,4,2          ; @BUS_SPACE_MAXSIZE
	.comm	_BUS_SPACE_MAXADDR_32BIT,4,2    ; @BUS_SPACE_MAXADDR_32BIT
	.comm	_busdma_lock_mutex,8,3          ; @busdma_lock_mutex
	.comm	_BUS_DMA_WAITOK,4,2             ; @BUS_DMA_WAITOK
	.comm	_BUS_DMA_ZERO,4,2               ; @BUS_DMA_ZERO
	.comm	_llan_rx_load_cb,4,2            ; @llan_rx_load_cb
	.comm	_LLAN_MAX_RX_PACKETS,4,2        ; @LLAN_MAX_RX_PACKETS
	.comm	_IFT_ETHER,4,2                  ; @IFT_ETHER
	.comm	_ETHERMTU,4,2                   ; @ETHERMTU
	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_IFF_SIMPLEX,4,2                ; @IFF_SIMPLEX
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_llan_start,4,2                 ; @llan_start
	.comm	_llan_ioctl,4,2                 ; @llan_ioctl
	.comm	_llan_init,4,2                  ; @llan_init
	.comm	_IFM_IMASK,4,2                  ; @IFM_IMASK
	.comm	_llan_media_change,4,2          ; @llan_media_change
	.comm	_llan_media_status,4,2          ; @llan_media_status
	.comm	_IFM_ETHER,4,2                  ; @IFM_ETHER
	.comm	_IFM_AUTO,4,2                   ; @IFM_AUTO
	.comm	_LLAN_MAX_TX_PACKETS,4,2        ; @LLAN_MAX_TX_PACKETS
	.comm	_LINK_STATE_UP,4,2              ; @LINK_STATE_UP
	.no_dead_strip	_llan_attach
.subsections_via_symbols
