	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fjn_close
_fjn_close:                             ## @fjn_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	16(%rax), %r12
	movl	(%rbx), %r14d
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	$0, 8(%r15)
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	_sram_config@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_CONFIG0_RST@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CONFIG0_RST_1@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	movq	_CONFIG_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	callq	_outb
	movq	_CHIP_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CONFIG_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	callq	_outb
	movq	(%r15), %rax
	movq	_MBH10302@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_INTR_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LAN_CTRL@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r14, %rsi
	callq	_outb
LBB0_5:
	decl	(%r12)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fjn_close('%s').\n"

	.comm	_sram_config,8,3                ## @sram_config
	.comm	_CONFIG0_RST,4,2                ## @CONFIG0_RST
	.comm	_CONFIG_0,8,3                   ## @CONFIG_0
	.comm	_CONFIG0_RST_1,4,2              ## @CONFIG0_RST_1
	.comm	_CHIP_OFF,4,2                   ## @CHIP_OFF
	.comm	_CONFIG_1,8,3                   ## @CONFIG_1
	.comm	_MBH10302,8,3                   ## @MBH10302
	.comm	_INTR_OFF,4,2                   ## @INTR_OFF
	.comm	_LAN_CTRL,8,3                   ## @LAN_CTRL
	.no_dead_strip	_fjn_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fjn_close
_fjn_close:                             ; @fjn_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #16]
	ldp	w22, w1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	str	xzr, [x20, #8]
	mov	x0, x19
	bl	_netif_stop_queue
Lloh2:
	adrp	x8, _sram_config@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sram_config@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _CONFIG0_RST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONFIG0_RST@GOTPAGEOFF]
Lloh7:
	adrp	x10, _CONFIG0_RST_1@GOTPAGE
Lloh8:
	ldr	x10, [x10, _CONFIG0_RST_1@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _CONFIG_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CONFIG_0@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb
Lloh12:
	adrp	x8, _CHIP_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CHIP_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _CONFIG_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONFIG_1@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb
	ldr	x8, [x20]
Lloh18:
	adrp	x9, _MBH10302@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MBH10302@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh21:
	adrp	x8, _INTR_OFF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INTR_OFF@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _LAN_CTRL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LAN_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb
LBB0_2:
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fjn_close('%s').\n"

	.comm	_sram_config,8,3                ; @sram_config
	.comm	_CONFIG0_RST,4,2                ; @CONFIG0_RST
	.comm	_CONFIG_0,8,3                   ; @CONFIG_0
	.comm	_CONFIG0_RST_1,4,2              ; @CONFIG0_RST_1
	.comm	_CHIP_OFF,4,2                   ; @CHIP_OFF
	.comm	_CONFIG_1,8,3                   ; @CONFIG_1
	.comm	_MBH10302,8,3                   ; @MBH10302
	.comm	_INTR_OFF,4,2                   ; @INTR_OFF
	.comm	_LAN_CTRL,8,3                   ; @LAN_CTRL
	.no_dead_strip	_fjn_close
.subsections_via_symbols
