	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_nic_init                    ## -- Begin function aq_nic_init
	.p2align	4, 0x90
_aq_nic_init:                           ## @aq_nic_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_AQ_HW_POWER_STATE_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rdi)
	leaq	32(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	16(%r12), %rax
	movl	8(%r12), %edi
	callq	*(%rax)
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%r14d, %r14d
	js	LBB0_6
## %bb.1:
	movq	16(%r12), %rax
	movq	8(%rax), %rbx
	movl	8(%r12), %r14d
	movq	%r12, %rdi
	callq	_aq_nic_get_ndev
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	*%rbx
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.3:
	movq	24(%r12), %rax
	movl	$8, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	movq	16(%r12), %rsi
	movl	8(%r12), %edx
	callq	_aq_vec_init
	incq	%rbx
	movq	24(%r12), %rax
	addq	%r15, %rax
	movl	(%r12), %ecx
	addq	$8, %r15
	cmpq	%rcx, %rbx
	jb	LBB0_4
LBB0_5:
	movl	4(%r12), %edi
	callq	_netif_carrier_off
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AQ_HW_POWER_STATE_D0,4,2       ## @AQ_HW_POWER_STATE_D0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_nic_init                    ; -- Begin function aq_nic_init
	.p2align	2
_aq_nic_init:                           ; @aq_nic_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _AQ_HW_POWER_STATE_D0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AQ_HW_POWER_STATE_D0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #36]
	add	x21, x0, #32
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w0, [x19, #8]
	blr	x8
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	tbnz	w20, #31, LBB0_6
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x21, [x8, #8]
	ldr	w20, [x19, #8]
	mov	x0, x19
	bl	_aq_nic_get_ndev
	ldr	w1, [x0]
	mov	x0, x20
	blr	x21
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x21, #0
	ldr	x8, [x19, #24]
	mov	w22, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8]
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #8]
	bl	_aq_vec_init
	add	x21, x21, #1
	ldr	x8, [x19, #24]
	add	x8, x8, x22
	ldr	w9, [x19]
	add	x22, x22, #8
	cmp	x21, x9
	b.lo	LBB0_4
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_netif_carrier_off
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AQ_HW_POWER_STATE_D0,4,2       ; @AQ_HW_POWER_STATE_D0
.subsections_via_symbols
