	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25821_get_resources
_cx25821_get_resources:                 ## @cx25821_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_pci_resource_start
	movq	%rax, %r15
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_request_mem_region
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	4(%rbx), %ebx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_pci_resource_start
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_pr_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: can't get MMIO memory @ 0x%llx\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_cx25821_get_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx25821_get_resources
_cx25821_get_resources:                 ; @cx25821_get_resources
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	mov	w1, #0
	bl	_pci_resource_start
	mov	x20, x0
	ldr	w0, [x19]
	mov	w1, #0
	bl	_pci_resource_len
	mov	x1, x0
	ldr	w2, [x19, #4]
	mov	x0, x20
	bl	_request_mem_region
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_2
; %bb.1:
	ldp	w0, w20, [x19]
	mov	w1, #0
	bl	_pci_resource_start
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: can't get MMIO memory @ 0x%llx\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_cx25821_get_resources
.subsections_via_symbols
