	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbus_alarm
_smbus_alarm:                           ## @smbus_alarm
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_ACPI_SMB_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-40(%rbp), %rdx
	callq	_smb_hc_read
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	cmpq	$0, -32(%rbp)
	je	LBB0_3
## %bb.2:
	leaq	4(%rbx), %rdi
	callq	_wake_up
LBB0_3:
	cmpq	$0, -40(%rbp)
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_ACPI_SMB_ALARM_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_smb_hc_read
	movq	$0, -40(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smb_hc_write
	movl	-20(%rbp), %eax
	sarl	%eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_6
## %bb.5:
	movq	_OSL_GPE_HANDLER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_acpi_smbus_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_acpi_os_execute
LBB0_6:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_7:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_SMB_STATUS,4,2            ## @ACPI_SMB_STATUS
	.comm	_ACPI_SMB_ALARM_ADDRESS,4,2     ## @ACPI_SMB_ALARM_ADDRESS
	.comm	_OSL_GPE_HANDLER,4,2            ## @OSL_GPE_HANDLER
	.comm	_acpi_smbus_callback,4,2        ## @acpi_smbus_callback
	.no_dead_strip	_smbus_alarm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smbus_alarm
_smbus_alarm:                           ; @smbus_alarm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x20, _ACPI_SMB_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ACPI_SMB_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #16
	bl	_smb_hc_read
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_3
; %bb.2:
	add	x0, x19, #4
	bl	_wake_up
LBB0_3:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_mutex_lock
Lloh2:
	adrp	x8, _ACPI_SMB_ALARM_ADDRESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ACPI_SMB_ALARM_ADDRESS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smb_hc_read
	str	xzr, [sp, #16]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_smb_hc_write
	ldr	w8, [sp, #12]
	asr	w8, w8, #1
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _OSL_GPE_HANDLER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSL_GPE_HANDLER@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _acpi_smbus_callback@GOTPAGE
Lloh9:
	ldr	x8, [x8, _acpi_smbus_callback@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_acpi_os_execute
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_SMB_STATUS,4,2            ; @ACPI_SMB_STATUS
	.comm	_ACPI_SMB_ALARM_ADDRESS,4,2     ; @ACPI_SMB_ALARM_ADDRESS
	.comm	_OSL_GPE_HANDLER,4,2            ; @OSL_GPE_HANDLER
	.comm	_acpi_smbus_callback,4,2        ; @acpi_smbus_callback
	.no_dead_strip	_smbus_alarm
.subsections_via_symbols
