	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ipmi_space_handler
_acpi_ipmi_space_handler:               ## @acpi_ipmi_space_handler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ACPI_IO_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	_ACPI_READ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_2
## %bb.1:
	movq	_AE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	%r8, %r12
	cmpl	$0, 4(%r8)
	je	LBB0_3
## %bb.4:
	movq	%rcx, %r15
	movl	%esi, %ebx
	movq	%r12, %rdi
	callq	_acpi_alloc_ipmi_msg
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_acpi_format_ipmi_msg
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	8(%r12), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	4(%r12), %edi
	leaq	16(%r14), %rsi
	movl	12(%r14), %edx
	leaq	8(%r14), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_ipmi_request_settime
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_AE_NOT_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	addq	$4, %rdi
	movq	_IPMI_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wait_for_completion_timeout
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_acpi_format_ipmi_response
	movq	_AE_OK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_list_del
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_kfree
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_IO_MASK,4,2               ## @ACPI_IO_MASK
	.comm	_ACPI_READ,4,2                  ## @ACPI_READ
	.comm	_AE_TYPE,4,2                    ## @AE_TYPE
	.comm	_AE_NOT_EXIST,4,2               ## @AE_NOT_EXIST
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.comm	_IPMI_TIMEOUT,4,2               ## @IPMI_TIMEOUT
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_acpi_ipmi_space_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ipmi_space_handler
_acpi_ipmi_space_handler:               ; @acpi_ipmi_space_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _ACPI_IO_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_IO_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _ACPI_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AE_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_2:
	mov	x19, x4
	ldr	w8, [x4, #4]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x21, x3
	mov	x22, x1
	mov	x0, x19
	bl	_acpi_alloc_ipmi_msg
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	mov	x1, x22
	mov	x2, x21
	bl	_acpi_format_ipmi_msg
	mov	x0, x19
	bl	_mutex_lock
	add	x1, x19, #8
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w0, [x19, #4]
	add	x1, x20, #16
	ldr	w2, [x20, #12]
	add	x3, x20, #8
	mov	x4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_ipmi_request_settime
	cbz	w0, LBB0_8
; %bb.5:
Lloh9:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _AE_NOT_EXIST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_NOT_EXIST@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_8:
	add	x0, x20, #4
Lloh17:
	adrp	x8, _IPMI_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IPMI_TIMEOUT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_wait_for_completion_timeout
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_acpi_format_ipmi_response
Lloh20:
	adrp	x8, _AE_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_9:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_list_del
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	bl	_kfree
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_IO_MASK,4,2               ; @ACPI_IO_MASK
	.comm	_ACPI_READ,4,2                  ; @ACPI_READ
	.comm	_AE_TYPE,4,2                    ; @AE_TYPE
	.comm	_AE_NOT_EXIST,4,2               ; @AE_NOT_EXIST
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.comm	_IPMI_TIMEOUT,4,2               ; @IPMI_TIMEOUT
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_acpi_ipmi_space_handler
.subsections_via_symbols
