	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_pci_init_iatu               ## -- Begin function hl_pci_init_iatu
	.p2align	4, 0x90
_hl_pci_init_iatu:                      ## @hl_pci_init_iatu
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_lower_32_bits
	movq	%r13, %rdi
	movl	$276, %esi                      ## imm = 0x114
	movl	%eax, %edx
	callq	_hl_pci_iatu_write
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_upper_32_bits
	movq	%r13, %rdi
	movl	$280, %esi                      ## imm = 0x118
	movl	%eax, %edx
	callq	_hl_pci_iatu_write
	movl	%eax, %r12d
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	xorl	%edx, %edx
	callq	_hl_pci_iatu_write
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	$260, %esi                      ## imm = 0x104
	movl	$-1073217536, %edx              ## imm = 0xC0080000
	callq	_hl_pci_iatu_write
	movl	%eax, %ebx
	movq	(%r13), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	*%rcx
	movq	_U64_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	orl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	orl	%ebx, %r15d
	orl	%r12d, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %r12
	decq	%r12
	movq	%rbx, %rdi
	callq	_lower_32_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	%eax, %edx
	callq	_hl_pci_iatu_write
	orl	%r15d, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_upper_32_bits
	movq	%r13, %rdi
	movl	$12, %esi
	movl	%eax, %edx
	callq	_hl_pci_iatu_write
	movl	%eax, %r14d
	movq	%r12, %rdi
	movq	%r12, %rbx
	callq	_lower_32_bits
	movq	%r13, %rdi
	movl	$16, %esi
	movl	%eax, %edx
	callq	_hl_pci_iatu_write
	movl	%eax, %r12d
	orl	%r14d, %r12d
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movl	$20, %esi
	xorl	%edx, %edx
	callq	_hl_pci_iatu_write
	movl	%eax, %r15d
	orl	%r12d, %r15d
	orl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	movq	%r13, %rdi
	movl	$24, %esi
	xorl	%edx, %edx
	callq	_hl_pci_iatu_write
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_upper_32_bits
	movq	%r13, %rdi
	movl	$32, %esi
	movl	%eax, %edx
	callq	_hl_pci_iatu_write
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_hl_pci_iatu_write
	movl	%eax, %r12d
	orl	%ebx, %r12d
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	callq	_hl_pci_iatu_write
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r15d, %ebx
	movq	8(%r13), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_hl_pci_elbi_write
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	8(%r13), %rsi
	addq	$4, %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_hl_pci_elbi_write
	orl	%r15d, %eax
	je	LBB0_6
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_U64_MAX,8,3                    ## @U64_MAX
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_pci_init_iatu               ; -- Begin function hl_pci_init_iatu
	.p2align	2
_hl_pci_init_iatu:                      ; @hl_pci_init_iatu
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
	mov	x0, x1
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	w1, #276
	bl	_hl_pci_iatu_write
	mov	x23, x0
	mov	x0, x24
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	w1, #280
	bl	_hl_pci_iatu_write
	mov	x24, x0
	mov	x0, x19
	mov	w1, #256
	mov	w2, #0
	bl	_hl_pci_iatu_write
	mov	x25, x0
	mov	x0, x19
	mov	w1, #260
	mov	w2, #-1073217536
	bl	_hl_pci_iatu_write
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x26, x0
	mov	x0, x19
	mov	x1, x22
	blr	x8
Lloh0:
	adrp	x8, _U64_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _U64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	orr	w8, w24, w23
	orr	w8, w8, w25
	orr	w22, w8, w26
	add	x8, x20, x21
	sub	x21, x8, #1
	mov	x0, x20
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	w1, #8
	bl	_hl_pci_iatu_write
	orr	w22, w22, w0
	mov	x0, x20
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	w1, #12
	bl	_hl_pci_iatu_write
	orr	w20, w22, w0
	mov	x0, x21
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	w1, #16
	bl	_hl_pci_iatu_write
	orr	w20, w20, w0
	mov	x0, x19
	mov	w1, #20
	mov	w2, #0
	bl	_hl_pci_iatu_write
	orr	w20, w20, w0
	mov	x0, x19
	mov	w1, #24
	mov	w2, #0
	bl	_hl_pci_iatu_write
	orr	w20, w20, w0
	mov	x0, x21
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	w1, #32
	bl	_hl_pci_iatu_write
	orr	w20, w20, w0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8192
	bl	_hl_pci_iatu_write
	orr	w20, w20, w0
	mov	x0, x19
	mov	w1, #4
	mov	w2, #-2147483648
	bl	_hl_pci_iatu_write
	orr	w20, w20, w0
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_hl_pci_elbi_write
	orr	w20, w20, w0
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	mov	x0, x19
	mov	w2, #0
	bl	_hl_pci_elbi_write
	orr	w8, w20, w0
	cbz	w8, LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_U64_MAX,8,3                    ; @U64_MAX
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
