	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_register_write         ## -- Begin function acpi_hw_register_write
	.p2align	4, 0x90
_acpi_hw_register_write:                ## @acpi_hw_register_write
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_hw_register_write@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	leal	-128(%rbx), %eax
	cmpl	$5, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	movl	$8, %edx
	callq	_acpi_hw_write_port
	jmp	LBB0_13
LBB0_3:
	movl	%ebx, %edi
	callq	_ACPI_ERROR
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_4:
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rsi
	addq	$4, %rsi
	movl	%r14d, %edi
	jmp	LBB0_7
LBB0_5:
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %r15
	addq	$8, %r15
	leaq	-36(%rbp), %rdi
	movq	%r15, %rsi
	callq	_acpi_hw_read
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	_ACPI_PM2_CONTROL_PRESERVED_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movl	%r14d, %edi
	callq	_ACPI_INSERT_BITS
	movl	%r14d, %edi
	movq	%r15, %rsi
LBB0_7:
	callq	_acpi_hw_write
	jmp	LBB0_13
LBB0_8:
	movq	_ACPI_PM1_STATUS_PRESERVED_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%r14d, %edi
	movq	_acpi_gbl_xpm1a_status@GOTPCREL(%rip), %rsi
	movq	_acpi_gbl_xpm1b_status@GOTPCREL(%rip), %rdx
	jmp	LBB0_12
LBB0_9:
	movq	_acpi_gbl_xpm1a_enable@GOTPCREL(%rip), %rsi
	movq	_acpi_gbl_xpm1b_enable@GOTPCREL(%rip), %rdx
	movl	%r14d, %edi
	jmp	LBB0_12
LBB0_10:
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %r15
	leaq	16(%r15), %r12
	addq	$12, %r15
	leaq	-36(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_acpi_hw_read_multiple
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	_ACPI_PM1_CONTROL_PRESERVED_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movl	%r14d, %edi
	callq	_ACPI_INSERT_BITS
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
LBB0_12:
	callq	_acpi_hw_write_multiple
LBB0_13:
	movl	%eax, %ebx
LBB0_14:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.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
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_hw_register_write,4,2          ## @hw_register_write
	.comm	_ACPI_PM1_STATUS_PRESERVED_BITS,4,2 ## @ACPI_PM1_STATUS_PRESERVED_BITS
	.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_PRESERVED_BITS,4,2 ## @ACPI_PM1_CONTROL_PRESERVED_BITS
	.comm	_ACPI_PM2_CONTROL_PRESERVED_BITS,4,2 ## @ACPI_PM2_CONTROL_PRESERVED_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_write         ; -- Begin function acpi_hw_register_write
	.p2align	2
_acpi_hw_register_write:                ; @acpi_hw_register_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _hw_register_write@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_register_write@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]
	mov	x1, x19
	mov	w2, #8
	bl	_acpi_hw_write_port
	b	LBB0_13
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_14
LBB0_4:
Lloh11:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
	add	x1, x8, #4
	mov	x0, x19
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
	add	x21, x8, #8
	add	x0, sp, #12
	mov	x1, x21
	bl	_acpi_hw_read
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbnz	w0, LBB0_14
; %bb.6:
Lloh15:
	adrp	x8, _ACPI_PM2_CONTROL_PRESERVED_BITS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACPI_PM2_CONTROL_PRESERVED_BITS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_ACPI_INSERT_BITS
	mov	x0, x19
	mov	x1, x21
LBB0_7:
	bl	_acpi_hw_write
	b	LBB0_13
LBB0_8:
Lloh18:
	adrp	x8, _ACPI_PM1_STATUS_PRESERVED_BITS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ACPI_PM1_STATUS_PRESERVED_BITS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w0, w19, w8
Lloh21:
	adrp	x1, _acpi_gbl_xpm1a_status@GOTPAGE
Lloh22:
	ldr	x1, [x1, _acpi_gbl_xpm1a_status@GOTPAGEOFF]
Lloh23:
	adrp	x2, _acpi_gbl_xpm1b_status@GOTPAGE
Lloh24:
	ldr	x2, [x2, _acpi_gbl_xpm1b_status@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh25:
	adrp	x1, _acpi_gbl_xpm1a_enable@GOTPAGE
Lloh26:
	ldr	x1, [x1, _acpi_gbl_xpm1a_enable@GOTPAGEOFF]
Lloh27:
	adrp	x2, _acpi_gbl_xpm1b_enable@GOTPAGE
Lloh28:
	ldr	x2, [x2, _acpi_gbl_xpm1b_enable@GOTPAGEOFF]
	mov	x0, x19
	b	LBB0_12
LBB0_10:
Lloh29:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
	add	x21, x8, #16
	add	x22, x8, #12
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x22
	bl	_acpi_hw_read_multiple
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbnz	w0, LBB0_14
; %bb.11:
Lloh31:
	adrp	x8, _ACPI_PM1_CONTROL_PRESERVED_BITS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ACPI_PM1_CONTROL_PRESERVED_BITS@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_ACPI_INSERT_BITS
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
LBB0_12:
	bl	_acpi_hw_write_multiple
LBB0_13:
	mov	x20, x0
LBB0_14:
	mov	x0, x20
	bl	_return_ACPI_STATUS
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.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_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_hw_register_write,4,2          ; @hw_register_write
	.comm	_ACPI_PM1_STATUS_PRESERVED_BITS,4,2 ; @ACPI_PM1_STATUS_PRESERVED_BITS
	.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_PRESERVED_BITS,4,2 ; @ACPI_PM1_CONTROL_PRESERVED_BITS
	.comm	_ACPI_PM2_CONTROL_PRESERVED_BITS,4,2 ; @ACPI_PM2_CONTROL_PRESERVED_BITS
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
.subsections_via_symbols
