	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_reset
_smc_reset:                             ## @smc_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_RCR_SOFTRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%ebx, %rbx
	movq	_RCR@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	callq	_outw
	xorl	%eax, %eax
	callq	_SMC_DELAY
	movq	_RCR_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	callq	_outw
	movq	_TCR_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outw
	movl	$1, %edi
	callq	_SMC_SELECT_BANK
	movq	_CONTROL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movq	_CTL_AUTO_RELEASE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_outw
	movl	$2, %edi
	callq	_SMC_SELECT_BANK
	movq	_MC_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MMU_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outw
	movq	_INT_MASK@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCR_SOFTRESET,4,2              ## @RCR_SOFTRESET
	.comm	_RCR,8,3                        ## @RCR
	.comm	_RCR_CLEAR,4,2                  ## @RCR_CLEAR
	.comm	_TCR_CLEAR,4,2                  ## @TCR_CLEAR
	.comm	_TCR,8,3                        ## @TCR
	.comm	_CONTROL,8,3                    ## @CONTROL
	.comm	_CTL_AUTO_RELEASE,4,2           ## @CTL_AUTO_RELEASE
	.comm	_MC_RESET,4,2                   ## @MC_RESET
	.comm	_MMU_CMD,8,3                    ## @MMU_CMD
	.comm	_INT_MASK,8,3                   ## @INT_MASK
	.no_dead_strip	_smc_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_reset
_smc_reset:                             ; @smc_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh0:
	adrp	x8, _RCR_SOFTRESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCR_SOFTRESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sxtw	x19, w19
Lloh3:
	adrp	x20, _RCR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _RCR@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, x19
	bl	_outw
	bl	_SMC_DELAY
Lloh5:
	adrp	x8, _RCR_CLEAR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RCR_CLEAR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x1, x8, x19
	bl	_outw
Lloh8:
	adrp	x8, _TCR_CLEAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TCR_CLEAR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _TCR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCR@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x19
	bl	_outw
	mov	w0, #1
	bl	_SMC_SELECT_BANK
Lloh14:
	adrp	x20, _CONTROL@GOTPAGE
Lloh15:
	ldr	x20, [x20, _CONTROL@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x0, x8, x19
	bl	_inw
Lloh16:
	adrp	x8, _CTL_AUTO_RELEASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CTL_AUTO_RELEASE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x20]
	add	x1, x8, x19
	bl	_outw
	mov	w0, #2
	bl	_SMC_SELECT_BANK
Lloh19:
	adrp	x8, _MC_RESET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MC_RESET@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _MMU_CMD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MMU_CMD@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x1, x8, x19
	bl	_outw
Lloh25:
	adrp	x8, _INT_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _INT_MASK@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	add	x1, x8, x19
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outb
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RCR_SOFTRESET,4,2              ; @RCR_SOFTRESET
	.comm	_RCR,8,3                        ; @RCR
	.comm	_RCR_CLEAR,4,2                  ; @RCR_CLEAR
	.comm	_TCR_CLEAR,4,2                  ; @TCR_CLEAR
	.comm	_TCR,8,3                        ; @TCR
	.comm	_CONTROL,8,3                    ; @CONTROL
	.comm	_CTL_AUTO_RELEASE,4,2           ; @CTL_AUTO_RELEASE
	.comm	_MC_RESET,4,2                   ; @MC_RESET
	.comm	_MMU_CMD,8,3                    ; @MMU_CMD
	.comm	_INT_MASK,8,3                   ; @INT_MASK
	.no_dead_strip	_smc_reset
.subsections_via_symbols
