	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function llan_init
_llan_init:                             ## @llan_init
	.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, %r12
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_H_FREE_LOGICAL_LAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r12), %esi
	xorl	%eax, %eax
	callq	_phyp_hcall
	movq	$0, 56(%r12)
	movl	$1, (%r12)
	movl	48(%r12), %esi
	leaq	-44(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	_H_REGISTER_LOGICAL_LAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	44(%r12), %edx
	movl	24(%r12), %esi
	movl	40(%r12), %r8d
	movl	-44(%rbp), %r9d
	xorl	%eax, %eax
	callq	_phyp_hcall
	movq	_LLAN_MAX_RX_PACKETS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_llan_add_rxbuf
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_H_VIO_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r12), %esi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_phyp_hcall
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movq	16(%r12), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%edx, (%rcx)
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%edx, %eax
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	%r12, %rdi
	callq	_llan_intr
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_FREE_LOGICAL_LAN,4,2         ## @H_FREE_LOGICAL_LAN
	.comm	_LLAN_BUFDESC_VALID,4,2         ## @LLAN_BUFDESC_VALID
	.comm	_H_REGISTER_LOGICAL_LAN,4,2     ## @H_REGISTER_LOGICAL_LAN
	.comm	_LLAN_MAX_RX_PACKETS,4,2        ## @LLAN_MAX_RX_PACKETS
	.comm	_H_VIO_SIGNAL,4,2               ## @H_VIO_SIGNAL
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.no_dead_strip	_llan_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function llan_init
_llan_init:                             ; @llan_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	add	x20, x0, #12
	mov	x0, x20
	bl	_mtx_lock
Lloh0:
	adrp	x8, _H_FREE_LOGICAL_LAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H_FREE_LOGICAL_LAN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_phyp_hcall
	str	xzr, [x19, #56]
	mov	w8, #1
	str	w8, [x19]
	ldr	w1, [x19, #48]
	add	x0, sp, #44
	mov	w2, #8
	bl	_memcpy
Lloh3:
	adrp	x8, _H_REGISTER_LOGICAL_LAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H_REGISTER_LOGICAL_LAN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	ldp	w9, w8, [x19, #40]
	ldr	w10, [sp, #44]
	stp	x9, x10, [sp, #16]
	str	x8, [sp]
	bl	_phyp_hcall
Lloh6:
	adrp	x21, _LLAN_MAX_RX_PACKETS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _LLAN_MAX_RX_PACKETS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x1, x8, x22
	mov	x0, x19
	bl	_llan_add_rxbuf
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
Lloh8:
	adrp	x8, _H_VIO_SIGNAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H_VIO_SIGNAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	mov	w8, #1
	str	x8, [sp]
	bl	_phyp_hcall
Lloh11:
	adrp	x8, _IFF_DRV_RUNNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh14:
	adrp	x10, _IFF_DRV_OACTIVE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	bic	w8, w8, w10
	str	w8, [x9]
	mov	x0, x20
	bl	_mtx_unlock
	mov	x0, x19
	bl	_llan_intr
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_H_FREE_LOGICAL_LAN,4,2         ; @H_FREE_LOGICAL_LAN
	.comm	_LLAN_BUFDESC_VALID,4,2         ; @LLAN_BUFDESC_VALID
	.comm	_H_REGISTER_LOGICAL_LAN,4,2     ; @H_REGISTER_LOGICAL_LAN
	.comm	_LLAN_MAX_RX_PACKETS,4,2        ; @LLAN_MAX_RX_PACKETS
	.comm	_H_VIO_SIGNAL,4,2               ; @H_VIO_SIGNAL
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.no_dead_strip	_llan_init
.subsections_via_symbols
