	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_close
_smc_close:                             ## @smc_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, %rbx
	callq	_netdev_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r14
	movl	(%rbx), %r15d
	movl	4(%rbx), %r12d
	leaq	4(%r14), %r13
	movq	_BANK_SELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r15, %rdi
	callq	_inw
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movl	$2, %edi
	callq	_SMC_SELECT_BANK
	movq	_INTERRUPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	xorl	%edi, %edi
	callq	_outw
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_RCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movl	$65280, %edi                    ## imm = 0xFF00
	callq	_mask_bits
	movq	_TCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movl	$65280, %edi                    ## imm = 0xFF00
	callq	_mask_bits
	movl	$1, %edi
	callq	_SMC_SELECT_BANK
	movq	_CTL_POWERDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CONTROL@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rsi
	callq	_outw
	decl	(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_del_timer_sync
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: smc_close(), status %4.4x.\n"

	.comm	_BANK_SELECT,8,3                ## @BANK_SELECT
	.comm	_INTERRUPT,8,3                  ## @INTERRUPT
	.comm	_RCR,8,3                        ## @RCR
	.comm	_TCR,8,3                        ## @TCR
	.comm	_CTL_POWERDOWN,4,2              ## @CTL_POWERDOWN
	.comm	_CONTROL,8,3                    ## @CONTROL
	.no_dead_strip	_smc_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_close
_smc_close:                             ; @smc_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, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x23, [x0, #8]
	add	x21, x23, #4
	ldp	w24, w22, [x20]
Lloh0:
	adrp	x8, _BANK_SELECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BANK_SELECT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_inw
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_dbg
	mov	x0, x20
	bl	_netif_stop_queue
	mov	w0, #2
	bl	_SMC_SELECT_BANK
Lloh5:
	adrp	x8, _INTERRUPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTERRUPT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, x24
	mov	w0, #0
	bl	_outw
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh8:
	adrp	x8, _RCR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RCR@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x24
	mov	w0, #65280
	bl	_mask_bits
Lloh11:
	adrp	x8, _TCR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCR@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x24
	mov	w0, #65280
	bl	_mask_bits
	mov	w0, #1
	bl	_SMC_SELECT_BANK
Lloh14:
	adrp	x8, _CTL_POWERDOWN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CTL_POWERDOWN@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _CONTROL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CONTROL@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x1, x8, x24
	bl	_outw
	ldr	w8, [x23]
	sub	w8, w8, #1
	str	w8, [x23]
	mov	x0, x19
	bl	_del_timer_sync
	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
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: smc_close(), status %4.4x.\n"

	.comm	_BANK_SELECT,8,3                ; @BANK_SELECT
	.comm	_INTERRUPT,8,3                  ; @INTERRUPT
	.comm	_RCR,8,3                        ; @RCR
	.comm	_TCR,8,3                        ; @TCR
	.comm	_CTL_POWERDOWN,4,2              ; @CTL_POWERDOWN
	.comm	_CONTROL,8,3                    ; @CONTROL
	.no_dead_strip	_smc_close
.subsections_via_symbols
