	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __cxgb_close
___cxgb_close:                          ## @__cxgb_close
	.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	%esi, %r15d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	24(%rax), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_t3_xgm_intr_disable
	movq	_A_XGM_INT_STATUS@GOTPCREL(%rip), %rax
	leaq	8(%r14), %r13
	movq	8(%r14), %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_t3_read_reg
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_t3_port_intr_disable
	movq	%r12, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	16(%r14), %rax
	movl	$1, %esi
	callq	*(%rax)
	movq	%r12, %rdi
	callq	_netif_carrier_off
	movq	_MAC_DIRECTION_TX@GOTPCREL(%rip), %rax
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r13, %rdi
	callq	_t3_mac_disable
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movl	(%rbx), %eax
	movq	_PORT_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	addq	$4, %rbx
	movq	_OFFLOAD_PORT_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_cxgb3_event_notify
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	8(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movl	(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_cxgb_down
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_A_XGM_INT_STATUS,8,3           ## @A_XGM_INT_STATUS
	.comm	_MAC_DIRECTION_TX,4,2           ## @MAC_DIRECTION_TX
	.comm	_MAC_DIRECTION_RX,4,2           ## @MAC_DIRECTION_RX
	.comm	_PORT_MASK,4,2                  ## @PORT_MASK
	.comm	_OFFLOAD_PORT_DOWN,4,2          ## @OFFLOAD_PORT_DOWN
	.no_dead_strip	___cxgb_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __cxgb_close
___cxgb_close:                          ; @__cxgb_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	ldr	x21, [x0, #24]
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w1, [x0]
	mov	x0, x21
	bl	_t3_xgm_intr_disable
Lloh0:
	adrp	x8, _A_XGM_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_XGM_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x23, x19
	ldr	x9, [x23, #8]!
	add	x1, x9, x8
	mov	x0, x21
	bl	_t3_read_reg
	ldr	w1, [x19]
	mov	x0, x21
	bl	_t3_port_intr_disable
	mov	x0, x22
	bl	_netif_tx_stop_all_queues
	mov	x0, x19
	ldr	x8, [x0, #16]!
	ldr	x8, [x8]
	mov	w1, #1
	blr	x8
	mov	x0, x22
	bl	_netif_carrier_off
Lloh3:
	adrp	x8, _MAC_DIRECTION_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_DIRECTION_TX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MAC_DIRECTION_RX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAC_DIRECTION_RX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x23
	bl	_t3_mac_disable
	add	x22, x21, #12
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	w0, [x19]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x22
	bl	_spin_unlock_irq
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _PORT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PORT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	cbz	w8, LBB0_6
LBB0_3:
	add	x0, x21, #4
Lloh12:
	adrp	x8, _OFFLOAD_PORT_DOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OFFLOAD_PORT_DOWN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x19]
	bl	_cxgb3_event_notify
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	x0, x21, #8
	bl	_cancel_delayed_work_sync
	ldr	w8, [x21]
	cbnz	w8, LBB0_3
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_cxgb_down
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_A_XGM_INT_STATUS,8,3           ; @A_XGM_INT_STATUS
	.comm	_MAC_DIRECTION_TX,4,2           ; @MAC_DIRECTION_TX
	.comm	_MAC_DIRECTION_RX,4,2           ; @MAC_DIRECTION_RX
	.comm	_PORT_MASK,4,2                  ; @PORT_MASK
	.comm	_OFFLOAD_PORT_DOWN,4,2          ; @OFFLOAD_PORT_DOWN
	.no_dead_strip	___cxgb_close
.subsections_via_symbols
