	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbni_close
_sbni_close:                            ## @sbni_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
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_notice
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_3:
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	callq	_drop_xmit_queue
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_del_timer
	movq	_CSR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_outb
	movq	_FL_SECONDARY@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	andl	(%rbx), %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	(%rbx), %eax
	andl	(%r13), %eax
LBB0_5:
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Secondary channel (%s) is active!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CSR0,8,3                       ## @CSR0
	.comm	_FL_SECONDARY,4,2               ## @FL_SECONDARY
	.comm	_FL_SLAVE,4,2                   ## @FL_SLAVE
	.no_dead_strip	_sbni_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbni_close
_sbni_close:                            ; @sbni_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
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	w2, [x8, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_notice
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock
	str	xzr, [x19, #16]
	mov	x0, x20
	bl	_drop_xmit_queue
	mov	x0, x20
	bl	_netif_stop_queue
	add	x0, x19, #8
	bl	_del_timer
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x9, _CSR0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CSR0@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_outb
	ldr	w8, [x19]
Lloh11:
	adrp	x22, _FL_SECONDARY@GOTPAGE
Lloh12:
	ldr	x22, [x22, _FL_SECONDARY@GOTPAGEOFF]
	ldr	w9, [x22]
	ands	w8, w9, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	ldr	w8, [x22]
	ldr	w9, [x19]
	and	w8, w9, w8
LBB0_5:
	str	w8, [x19]
	mov	x0, x21
	bl	_spin_unlock
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Secondary channel (%s) is active!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CSR0,8,3                       ; @CSR0
	.comm	_FL_SECONDARY,4,2               ; @FL_SECONDARY
	.comm	_FL_SLAVE,4,2                   ; @FL_SLAVE
	.no_dead_strip	_sbni_close
.subsections_via_symbols
