	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_enable
_smc_enable:                            ## @smc_enable
	.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
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_TCR_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%ebx, %rbx
	movq	_TCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outw
	movq	_RCR_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_outw
	movl	$2, %edi
	callq	_SMC_SELECT_BANK
	movq	_SMC_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INT_MASK@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TCR_NORMAL,4,2                 ## @TCR_NORMAL
	.comm	_TCR,8,3                        ## @TCR
	.comm	_RCR_NORMAL,4,2                 ## @RCR_NORMAL
	.comm	_RCR,8,3                        ## @RCR
	.comm	_SMC_INTERRUPT_MASK,4,2         ## @SMC_INTERRUPT_MASK
	.comm	_INT_MASK,8,3                   ## @INT_MASK
	.no_dead_strip	_smc_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_enable
_smc_enable:                            ; @smc_enable
	.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, _TCR_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCR_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sxtw	x19, w19
Lloh3:
	adrp	x8, _TCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x19
	bl	_outw
Lloh6:
	adrp	x8, _RCR_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RCR_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _RCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RCR@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x1, x8, x19
	bl	_outw
	mov	w0, #2
	bl	_SMC_SELECT_BANK
Lloh12:
	adrp	x8, _SMC_INTERRUPT_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMC_INTERRUPT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _INT_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INT_MASK@GOTPAGEOFF]
Lloh17:
	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	Lloh15, Lloh16, Lloh17
	.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	_TCR_NORMAL,4,2                 ; @TCR_NORMAL
	.comm	_TCR,8,3                        ; @TCR
	.comm	_RCR_NORMAL,4,2                 ; @RCR_NORMAL
	.comm	_RCR,8,3                        ; @RCR
	.comm	_SMC_INTERRUPT_MASK,4,2         ; @SMC_INTERRUPT_MASK
	.comm	_INT_MASK,8,3                   ; @INT_MASK
	.no_dead_strip	_smc_enable
.subsections_via_symbols
