	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_pci_bars_map                ## -- Begin function hl_pci_bars_map
	.p2align	4, 0x90
_hl_pci_bars_map:                       ## @hl_pci_bars_map
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %r14
	movq	_HL_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_1
## %bb.23:
	movl	%eax, %ebx
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
LBB0_1:
	cmpl	$0, (%r12)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_ioremap_wc_bar
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_ioremap_bar
LBB0_4:
	movq	(%r13), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.13:
	cmpl	$0, 4(%r12)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_pci_ioremap_wc_bar
	jmp	LBB0_16
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_15:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_pci_ioremap_bar
LBB0_16:
	movq	(%r13), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	cmpl	$0, 8(%r12)
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_pci_ioremap_wc_bar
	jmp	LBB0_21
LBB0_17:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_20:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_pci_ioremap_bar
LBB0_21:
	movq	(%r13), %rcx
	movq	%rax, 32(%rcx)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.22:
	movl	$2, %eax
LBB0_6:
	movl	8(%r13), %edi
	cmpl	$0, (%r12,%rax,4)
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	(%r15,%rax,8), %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r13), %rax
	movq	32(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_iounmap
	movq	(%r13), %rax
LBB0_8:
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_iounmap
	movq	(%r13), %rax
LBB0_10:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_iounmap
LBB0_12:
	negl	%ebx
	movq	%r14, %rdi
	callq	_pci_release_regions
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HL_NAME,4,2                    ## @HL_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot obtain PCI resources\n"

L_.str.1:                               ## @.str.1
	.asciz	"pci_ioremap%s_bar failed for %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"_wc"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_pci_bars_map                ; -- Begin function hl_pci_bars_map
	.p2align	2
_hl_pci_bars_map:                       ; @hl_pci_bars_map
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _HL_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HL_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_25
LBB0_2:
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_ioremap_wc_bar
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_ioremap_bar
LBB0_5:
	ldr	x8, [x20]
	str	x0, [x8]
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_9
; %bb.7:
	mov	x0, x19
	mov	w1, #2
	bl	_pci_ioremap_wc_bar
	b	LBB0_10
LBB0_8:
	mov	x8, #0
	b	LBB0_18
LBB0_9:
	mov	x0, x19
	mov	w1, #2
	bl	_pci_ioremap_bar
LBB0_10:
	ldr	x8, [x20]
	str	x0, [x8, #16]
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	w1, #4
	bl	_pci_ioremap_wc_bar
	b	LBB0_15
LBB0_13:
	mov	w8, #1
	b	LBB0_18
LBB0_14:
	mov	x0, x19
	mov	w1, #4
	bl	_pci_ioremap_bar
LBB0_15:
	ldr	x8, [x20]
	str	x0, [x8, #32]
	cbz	x0, LBB0_17
; %bb.16:
	mov	w23, #0
	b	LBB0_25
LBB0_17:
	mov	w8, #2
LBB0_18:
	ldr	w0, [x20, #8]
	ldr	w9, [x22, x8, lsl #2]
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh7:
	adrp	x11, l_.str.3@PAGE
Lloh8:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	w9, #0
	csel	x9, x11, x10, eq
	ldr	x8, [x21, x8, lsl #3]
	stp	x9, x8, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	ldr	x8, [x20]
	ldr	x0, [x8, #32]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_iounmap
	ldr	x8, [x20]
LBB0_20:
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_iounmap
	ldr	x8, [x20]
LBB0_22:
	ldr	x0, [x8]
	cbz	x0, LBB0_24
; %bb.23:
	bl	_iounmap
LBB0_24:
	neg	w23, w21
	mov	x0, x19
	bl	_pci_release_regions
LBB0_25:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HL_NAME,4,2                    ; @HL_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot obtain PCI resources\n"

l_.str.1:                               ; @.str.1
	.asciz	"pci_ioremap%s_bar failed for %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"_wc"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
