	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_register_read          ## -- Begin function acpi_hw_register_read
	.p2align	4, 0x90
_acpi_hw_register_read:                 ## @acpi_hw_register_read
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	$0, -20(%rbp)
	movq	_hw_register_read@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	leal	-128(%rbx), %eax
	cmpl	$5, %eax
	ja	LBB0_10
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rsi
	movl	$8, %edx
	callq	_acpi_hw_read_port
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	%ebx, %edi
	callq	_ACPI_ERROR
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rsi
	addq	$4, %rsi
	jmp	LBB0_7
LBB0_6:
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rsi
	addq	$8, %rsi
LBB0_7:
	leaq	-20(%rbp), %rdi
	callq	_acpi_hw_read
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_acpi_gbl_xpm1a_status@GOTPCREL(%rip), %rsi
	movq	_acpi_gbl_xpm1b_status@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_4:
	movq	_acpi_gbl_xpm1a_enable@GOTPCREL(%rip), %rsi
	movq	_acpi_gbl_xpm1b_enable@GOTPCREL(%rip), %rdx
LBB0_3:
	leaq	-20(%rbp), %rdi
	callq	_acpi_hw_read_multiple
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_5:
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rdx
	leaq	16(%rdx), %rsi
	addq	$12, %rdx
	leaq	-20(%rbp), %rdi
	callq	_acpi_hw_read_multiple
	movl	%eax, %ebx
	movq	_ACPI_PM1_CONTROL_WRITEONLY_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -20(%rbp)
LBB0_11:
	movl	%ebx, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	-20(%rbp), %eax
	movl	%eax, (%r14)
LBB0_13:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_hw_register_read,4,2           ## @hw_register_read
	.comm	_acpi_gbl_xpm1a_status,4,2      ## @acpi_gbl_xpm1a_status
	.comm	_acpi_gbl_xpm1b_status,4,2      ## @acpi_gbl_xpm1b_status
	.comm	_acpi_gbl_xpm1a_enable,4,2      ## @acpi_gbl_xpm1a_enable
	.comm	_acpi_gbl_xpm1b_enable,4,2      ## @acpi_gbl_xpm1b_enable
	.comm	_acpi_gbl_FADT,20,2             ## @acpi_gbl_FADT
	.comm	_ACPI_PM1_CONTROL_WRITEONLY_BITS,4,2 ## @ACPI_PM1_CONTROL_WRITEONLY_BITS
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_register_read          ; -- Begin function acpi_hw_register_read
	.p2align	2
_acpi_hw_register_read:                 ; @acpi_hw_register_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _hw_register_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_register_read@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	w2, #8
	bl	_acpi_hw_read_port
	mov	x20, x0
	b	LBB0_11
LBB0_3:
	mov	x0, x20
	bl	_ACPI_ERROR
Lloh8:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_4:
Lloh11:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
	add	x1, x8, #4
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
	add	x1, x8, #8
LBB0_6:
	add	x0, sp, #12
	bl	_acpi_hw_read
	mov	x20, x0
	b	LBB0_11
LBB0_7:
Lloh15:
	adrp	x1, _acpi_gbl_xpm1a_status@GOTPAGE
Lloh16:
	ldr	x1, [x1, _acpi_gbl_xpm1a_status@GOTPAGEOFF]
Lloh17:
	adrp	x2, _acpi_gbl_xpm1b_status@GOTPAGE
Lloh18:
	ldr	x2, [x2, _acpi_gbl_xpm1b_status@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x1, _acpi_gbl_xpm1a_enable@GOTPAGE
Lloh20:
	ldr	x1, [x1, _acpi_gbl_xpm1a_enable@GOTPAGEOFF]
Lloh21:
	adrp	x2, _acpi_gbl_xpm1b_enable@GOTPAGE
Lloh22:
	ldr	x2, [x2, _acpi_gbl_xpm1b_enable@GOTPAGEOFF]
LBB0_9:
	add	x0, sp, #12
	bl	_acpi_hw_read_multiple
	mov	x20, x0
	b	LBB0_11
LBB0_10:
Lloh23:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
	add	x1, x8, #16
	add	x2, x8, #12
	add	x0, sp, #12
	bl	_acpi_hw_read_multiple
	mov	x20, x0
Lloh25:
	adrp	x8, _ACPI_PM1_CONTROL_WRITEONLY_BITS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ACPI_PM1_CONTROL_WRITEONLY_BITS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
LBB0_11:
	mov	x0, x20
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_13:
	mov	x0, x20
	bl	_return_ACPI_STATUS
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_hw_register_read,4,2           ; @hw_register_read
	.comm	_acpi_gbl_xpm1a_status,4,2      ; @acpi_gbl_xpm1a_status
	.comm	_acpi_gbl_xpm1b_status,4,2      ; @acpi_gbl_xpm1b_status
	.comm	_acpi_gbl_xpm1a_enable,4,2      ; @acpi_gbl_xpm1a_enable
	.comm	_acpi_gbl_xpm1b_enable,4,2      ; @acpi_gbl_xpm1b_enable
	.comm	_acpi_gbl_FADT,20,2             ; @acpi_gbl_FADT
	.comm	_ACPI_PM1_CONTROL_WRITEONLY_BITS,4,2 ; @ACPI_PM1_CONTROL_WRITEONLY_BITS
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
.subsections_via_symbols
