	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_write_port             ## -- Begin function acpi_hw_write_port
	.p2align	4, 0x90
_acpi_hw_write_port:                    ## @acpi_hw_write_port
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %r12d
	movq	_acpi_gbl_truncate_io_addresses@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$1, (%rax)
	sbbl	%ecx, %ecx
	movq	_ACPI_UINT16_MAX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	andl	%ecx, %r12d
	movl	%r12d, %edi
	movl	%edx, %esi
	callq	_acpi_hw_validate_io_request
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_acpi_os_write_port             ## TAILCALL
LBB0_1:
	movq	_AE_AML_ILLEGAL_ADDRESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_8
## %bb.2:
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r12d
	addl	$8, %ebx
	cmpl	%r15d, %ebx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movl	$8, %esi
	callq	_acpi_hw_validate_io_request
	movq	_AE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %eax
	movl	%ebx, %ecx
	sarl	%cl, %eax
	movzbl	%al, %esi
	movl	%r12d, %edi
	movl	$8, %edx
	callq	_acpi_os_write_port
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_6
	jmp	LBB0_8
LBB0_7:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_8:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_gbl_truncate_io_addresses,8,3 ## @acpi_gbl_truncate_io_addresses
	.comm	_ACPI_UINT16_MAX,4,2            ## @ACPI_UINT16_MAX
	.comm	_AE_AML_ILLEGAL_ADDRESS,8,3     ## @AE_AML_ILLEGAL_ADDRESS
	.comm	_AE_OK,8,3                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_write_port             ; -- Begin function acpi_hw_write_port
	.p2align	2
_acpi_hw_write_port:                    ; @acpi_hw_write_port
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _acpi_gbl_truncate_io_addresses@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_gbl_truncate_io_addresses@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ACPI_UINT16_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_UINT16_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csinv	w8, w9, wzr, ne
	and	w21, w8, w0
	mov	x0, x21
	mov	x1, x2
	bl	_acpi_hw_validate_io_request
	mov	x22, x0
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_acpi_os_write_port
LBB0_2:
Lloh6:
	adrp	x8, _AE_AML_ILLEGAL_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_AML_ILLEGAL_ADDRESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_9
; %bb.3:
Lloh9:
	adrp	x23, _AE_OK@GOTPAGE
Lloh10:
	ldr	x23, [x23, _AE_OK@GOTPAGEOFF]
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.4:
	mov	w24, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	add	w24, w24, #8
	cmp	w24, w19
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #8
	bl	_acpi_hw_validate_io_request
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	asr	w8, w20, w24
	and	w1, w8, #0xff
	mov	x0, x21
	mov	w2, #8
	bl	_acpi_os_write_port
	mov	x22, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_5
	b	LBB0_9
LBB0_8:
	ldr	x22, [x23]
LBB0_9:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_gbl_truncate_io_addresses,8,3 ; @acpi_gbl_truncate_io_addresses
	.comm	_ACPI_UINT16_MAX,4,2            ; @ACPI_UINT16_MAX
	.comm	_AE_AML_ILLEGAL_ADDRESS,8,3     ; @AE_AML_ILLEGAL_ADDRESS
	.comm	_AE_OK,8,3                      ; @AE_OK
.subsections_via_symbols
