	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpet_resources
_hpet_resources:                        ## @hpet_resources
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-48(%rbp), %rsi
	callq	_acpi_resource_to_address64
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	-44(%rbp), %edi
	movl	%edi, 24(%r14)
	movl	-48(%rbp), %esi
	jmp	LBB0_2
LBB0_4:
	movq	(%r12), %rax
	movq	_ACPI_RESOURCE_TYPE_FIXED_MEMORY32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movl	32(%r12), %edi
	movl	%edi, 24(%r14)
	movq	_HPET_RANGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_2:
	callq	_ioremap
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	callq	_hpet_is_known
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	addq	$16, %r14
	movq	(%r14), %rdi
	callq	_iounmap
	movq	_AE_ALREADY_EXISTS@GOTPCREL(%rip), %r15
	jmp	LBB0_7
LBB0_3:
	movq	_AE_OK@GOTPCREL(%rip), %r15
	jmp	LBB0_7
LBB0_8:
	movq	_ACPI_RESOURCE_TYPE_EXTENDED_IRQ@GOTPCREL(%rip), %rcx
	movq	_AE_OK@GOTPCREL(%rip), %r15
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:
	cmpl	$0, 8(%r12)
	jle	LBB0_7
## %bb.10:
	xorl	%ebx, %ebx
	movq	_AE_ERROR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movl	12(%r12), %ecx
	movl	16(%r12), %edx
	xorl	%edi, %edi
	callq	_acpi_register_gsi
	testl	%eax, %eax
	js	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movq	%rdx, 8(%r14)
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
	jmp	LBB0_7
LBB0_13:
	movq	%r13, %r15
LBB0_7:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_ALREADY_EXISTS,4,2          ## @AE_ALREADY_EXISTS
	.comm	_ACPI_RESOURCE_TYPE_FIXED_MEMORY32,8,3 ## @ACPI_RESOURCE_TYPE_FIXED_MEMORY32
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_HPET_RANGE_SIZE,4,2            ## @HPET_RANGE_SIZE
	.comm	_ACPI_RESOURCE_TYPE_EXTENDED_IRQ,8,3 ## @ACPI_RESOURCE_TYPE_EXTENDED_IRQ
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_hpet_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpet_resources
_hpet_resources:                        ; @hpet_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	add	x1, sp, #8
	bl	_acpi_resource_to_address64
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_2
; %bb.1:
	ldp	w1, w0, [sp, #8]
	str	w0, [x19, #24]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ACPI_RESOURCE_TYPE_FIXED_MEMORY32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_RESOURCE_TYPE_FIXED_MEMORY32@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x20, #32]
	str	w0, [x19, #24]
Lloh3:
	adrp	x8, _HPET_RANGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HPET_RANGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
LBB0_4:
	bl	_ioremap
	mov	x20, x19
	str	x0, [x20, #16]!
	mov	x0, x19
	bl	_hpet_is_known
	cbz	x0, LBB0_11
; %bb.5:
	ldr	x0, [x20]
	bl	_iounmap
Lloh6:
	adrp	x21, _AE_ALREADY_EXISTS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _AE_ALREADY_EXISTS@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh8:
	adrp	x9, _ACPI_RESOURCE_TYPE_EXTENDED_IRQ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_RESOURCE_TYPE_EXTENDED_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x22, #0
Lloh11:
	adrp	x23, _AE_ERROR@GOTPAGE
Lloh12:
	ldr	x23, [x23, _AE_ERROR@GOTPAGEOFF]
Lloh13:
	adrp	x21, _AE_OK@GOTPAGE
Lloh14:
	ldr	x21, [x21, _AE_OK@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x22, lsl #2]
	ldp	w3, w2, [x20, #12]
	mov	x0, #0
	bl	_acpi_register_gsi
	tbnz	w0, #31, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldp	x8, x9, [x19]
	str	w0, [x8, x9, lsl #2]
	add	x8, x9, #1
	str	x8, [x19, #8]
	add	x22, x22, #1
	ldrsw	x8, [x20, #8]
	cmp	x22, x8
	b.lt	LBB0_9
	b	LBB0_12
LBB0_11:
Lloh15:
	adrp	x21, _AE_OK@GOTPAGE
Lloh16:
	ldr	x21, [x21, _AE_OK@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	x21, x23
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_ALREADY_EXISTS,4,2          ; @AE_ALREADY_EXISTS
	.comm	_ACPI_RESOURCE_TYPE_FIXED_MEMORY32,8,3 ; @ACPI_RESOURCE_TYPE_FIXED_MEMORY32
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_HPET_RANGE_SIZE,4,2            ; @HPET_RANGE_SIZE
	.comm	_ACPI_RESOURCE_TYPE_EXTENDED_IRQ,8,3 ; @ACPI_RESOURCE_TYPE_EXTENDED_IRQ
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_hpet_resources
.subsections_via_symbols
