	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_shutdown
_smc_shutdown:                          ## @smc_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movl	$2, %edi
	callq	_SMC_SELECT_BANK
	movslq	%ebx, %rbx
	movq	_INT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outb
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_RCR_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movq	_TCR_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TCR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MASK,8,3                   ## @INT_MASK
	.comm	_RCR_CLEAR,4,2                  ## @RCR_CLEAR
	.comm	_RCR,8,3                        ## @RCR
	.comm	_TCR_CLEAR,4,2                  ## @TCR_CLEAR
	.comm	_TCR,8,3                        ## @TCR
	.comm	_CONTROL,8,3                    ## @CONTROL
	.comm	_CTL_POWERDOWN,4,2              ## @CTL_POWERDOWN
	.no_dead_strip	_smc_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_shutdown
_smc_shutdown:                          ; @smc_shutdown
	.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, #2
	bl	_SMC_SELECT_BANK
	sxtw	x19, w19
Lloh0:
	adrp	x8, _INT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x19
	mov	w0, #0
	bl	_outb
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh3:
	adrp	x8, _RCR_CLEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RCR_CLEAR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _RCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RCR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x19
	bl	_outb
Lloh9:
	adrp	x8, _TCR_CLEAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TCR_CLEAR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _TCR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TCR@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x1, x8, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outb
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MASK,8,3                   ; @INT_MASK
	.comm	_RCR_CLEAR,4,2                  ; @RCR_CLEAR
	.comm	_RCR,8,3                        ; @RCR
	.comm	_TCR_CLEAR,4,2                  ; @TCR_CLEAR
	.comm	_TCR,8,3                        ; @TCR
	.comm	_CONTROL,8,3                    ; @CONTROL
	.comm	_CTL_POWERDOWN,4,2              ; @CTL_POWERDOWN
	.no_dead_strip	_smc_shutdown
.subsections_via_symbols
