	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efa_request_doorbell_bar
_efa_request_doorbell_bar:              ## @efa_request_doorbell_bar
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %r14d
	movq	(%rdi), %r15
	movl	%r14d, %edi
	callq	_BIT
	movq	_EFA_BASE_BAR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_3:
	movq	(%rbx), %rdi
	movl	%r14d, %esi
	callq	_pci_resource_start
	movl	%eax, 12(%rbx)
	movq	(%rbx), %rdi
	movl	%r14d, %esi
	callq	_pci_resource_len
	movl	%eax, 8(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_1:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_select_bars
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_BIT
	andl	%eax, %r12d
	movq	_DRV_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_pci_request_selected_regions
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFA_BASE_BAR_MASK,4,2          ## @EFA_BASE_BAR_MASK
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_DRV_MODULE_NAME,4,2            ## @DRV_MODULE_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_request_selected_regions for bar %d failed %d\n"

	.no_dead_strip	_efa_request_doorbell_bar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efa_request_doorbell_bar
_efa_request_doorbell_bar:              ; @efa_request_doorbell_bar
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	w19, [x0, #16]
	ldr	x21, [x0]
	mov	x0, x19
	bl	_BIT
Lloh0:
	adrp	x8, _EFA_BASE_BAR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFA_BASE_BAR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_1:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_pci_resource_start
	str	w0, [x20, #12]
	ldr	x0, [x20]
	mov	x1, x19
	bl	_pci_resource_len
	mov	w21, #0
	str	w0, [x20, #8]
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pci_select_bars
	mov	x22, x0
	mov	x0, x19
	bl	_BIT
	and	w1, w0, w22
Lloh6:
	adrp	x8, _DRV_MODULE_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRV_MODULE_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_pci_request_selected_regions
	cbz	w0, LBB0_1
; %bb.3:
	mov	x21, x0
	ldr	x0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_dev_err
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EFA_BASE_BAR_MASK,4,2          ; @EFA_BASE_BAR_MASK
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_DRV_MODULE_NAME,4,2            ; @DRV_MODULE_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_request_selected_regions for bar %d failed %d\n"

	.no_dead_strip	_efa_request_doorbell_bar
.subsections_via_symbols
