	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movq	24(%r14), %rcx
	movq	(%rcx,%rax,8), %r15
	callq	_netif_stop_queue
	leaq	16(%r14), %rdi
	callq	_napi_disable
	movq	(%r15), %rax
	movq	_MAC_DIRECTION_TX@GOTPCREL(%rip), %rcx
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	%r15, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_clear_bit
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.1:
	movl	(%r14), %eax
	movq	_PORT_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.4:
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	callq	_smp_mb__after_atomic
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_cancel_mac_stats_update
LBB0_3:
	movl	(%r14), %eax
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_cxgb_down
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.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
	.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	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	x20, x0
	ldp	x8, x19, [x0]
	ldr	x9, [x19, #24]
	ldr	x21, [x9, x8, lsl #3]
	bl	_netif_stop_queue
	add	x0, x19, #16
	bl	_napi_disable
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _MAC_DIRECTION_TX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC_DIRECTION_TX@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MAC_DIRECTION_RX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAC_DIRECTION_RX@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w1, w10, w9
	mov	x0, x21
	blr	x8
	mov	x0, x20
	bl	_netif_carrier_off
	ldr	x0, [x20]
	mov	x1, x19
	bl	_clear_bit
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _PORT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PORT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	cbz	w8, LBB0_6
LBB0_3:
	mov	w0, #0
	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
LBB0_4:
	bl	_smp_mb__after_atomic
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	bl	_cancel_mac_stats_update
LBB0_5:
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
LBB0_6:
	mov	x0, x19
	bl	_cxgb_down
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_cxgb_close
.subsections_via_symbols
