	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq_nic_update_link_status
_aq_nic_update_link_status:             ## @aq_nic_update_link_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	32(%rbx), %rax
	callq	*(%rax)
	movl	%eax, %r14d
	movl	$0, -20(%rbp)
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_6
## %bb.2:
	movq	_AQ_CFG_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_aq_nic_update_interrupt_moderation_settings
	movq	32(%rbx), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdi
	leaq	-20(%rbp), %rsi
	callq	*%rax
LBB0_4:
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	16(%rbx), %rdi
	movl	-20(%rbp), %esi
	xorl	%edx, %edx
	callq	*%rax
LBB0_6:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	4(%rbx), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.8:
	movq	_AQ_NIC_FLAG_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_aq_utils_obj_set
	movq	_AQ_NIC_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_aq_utils_obj_clear
	movl	4(%rbx), %edi
	callq	_netif_carrier_on
	movl	4(%rbx), %edi
	callq	_netif_tx_wake_all_queues
LBB0_9:
	movl	4(%rbx), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
## %bb.11:
	movl	4(%rbx), %edi
	callq	_netif_carrier_off
	movl	4(%rbx), %edi
	callq	_netif_tx_disable
	movq	_AQ_NIC_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_aq_utils_obj_set
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: link change old %d new %d\n"

	.comm	_AQ_CFG_DRV_NAME,4,2            ## @AQ_CFG_DRV_NAME
	.comm	_AQ_NIC_FLAG_STARTED,4,2        ## @AQ_NIC_FLAG_STARTED
	.comm	_AQ_NIC_LINK_DOWN,4,2           ## @AQ_NIC_LINK_DOWN
	.no_dead_strip	_aq_nic_update_link_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aq_nic_update_link_status
_aq_nic_update_link_status:             ; @aq_nic_update_link_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	x0, [x0, #16]
	blr	x8
	mov	x20, x0
	str	wzr, [sp, #12]
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldp	x2, x8, [x19, #8]
	ldr	x3, [x8]
	cmp	x2, x3
	b.eq	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _AQ_CFG_DRV_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AQ_CFG_DRV_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_aq_nic_update_interrupt_moderation_settings
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
	add	x1, sp, #12
	blr	x8
LBB0_5:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x0, [x19, #16]
	ldr	w1, [sp, #12]
	mov	w2, #0
	blr	x8
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w0, [x19, #4]
	bl	_netif_carrier_ok
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh5:
	adrp	x8, _AQ_NIC_FLAG_STARTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AQ_NIC_FLAG_STARTED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_aq_utils_obj_set
Lloh8:
	adrp	x8, _AQ_NIC_LINK_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AQ_NIC_LINK_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_aq_utils_obj_clear
	ldr	w0, [x19, #4]
	bl	_netif_carrier_on
	ldr	w0, [x19, #4]
	bl	_netif_tx_wake_all_queues
LBB0_10:
	ldr	w0, [x19, #4]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_1
; %bb.11:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_1
; %bb.12:
	ldr	w0, [x19, #4]
	bl	_netif_carrier_off
	ldr	w0, [x19, #4]
	bl	_netif_tx_disable
Lloh11:
	adrp	x8, _AQ_NIC_LINK_DOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AQ_NIC_LINK_DOWN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_aq_utils_obj_set
	b	LBB0_1
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: link change old %d new %d\n"

	.comm	_AQ_CFG_DRV_NAME,4,2            ; @AQ_CFG_DRV_NAME
	.comm	_AQ_NIC_FLAG_STARTED,4,2        ; @AQ_NIC_FLAG_STARTED
	.comm	_AQ_NIC_LINK_DOWN,4,2           ; @AQ_NIC_LINK_DOWN
	.no_dead_strip	_aq_nic_update_link_status
.subsections_via_symbols
