	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_epc_set_bar                ## -- Begin function pci_epc_set_bar
	.p2align	4, 0x90
_pci_epc_set_bar:                       ## @pci_epc_set_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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdx), %r12d
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	cmpq	%r14, (%rbx)
	jle	LBB0_8
## %bb.2:
	movq	8(%r15), %rax
	movq	_BAR_5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_8
LBB0_4:
	movq	_PCI_BASE_ADDRESS_SPACE_IO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_PCI_BASE_ADDRESS_IO_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_8
LBB0_6:
	movl	16(%r15), %edi
	callq	_upper_32_bits
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
LBB0_9:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.11:
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	*(%rax)
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	jmp	LBB0_12
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_BAR_5,8,3                      ## @BAR_5
	.comm	_PCI_BASE_ADDRESS_MEM_TYPE_64,4,2 ## @PCI_BASE_ADDRESS_MEM_TYPE_64
	.comm	_PCI_BASE_ADDRESS_SPACE_IO,4,2  ## @PCI_BASE_ADDRESS_SPACE_IO
	.comm	_PCI_BASE_ADDRESS_IO_MASK,4,2   ## @PCI_BASE_ADDRESS_IO_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_epc_set_bar                ; -- Begin function pci_epc_set_bar
	.p2align	2
_pci_epc_set_bar:                       ; @pci_epc_set_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x2]
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x21]
	cmp	x8, x20
	b.le	LBB0_10
; %bb.2:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _BAR_5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BAR_5@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _PCI_BASE_ADDRESS_SPACE_IO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_SPACE_IO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _PCI_BASE_ADDRESS_IO_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_IO_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_10
LBB0_6:
	ldr	w0, [x19, #16]
	bl	_upper_32_bits
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
LBB0_8:
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.9:
	add	x22, x21, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
	mov	x19, x0
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
LBB0_12:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BAR_5,8,3                      ; @BAR_5
	.comm	_PCI_BASE_ADDRESS_MEM_TYPE_64,4,2 ; @PCI_BASE_ADDRESS_MEM_TYPE_64
	.comm	_PCI_BASE_ADDRESS_SPACE_IO,4,2  ; @PCI_BASE_ADDRESS_SPACE_IO
	.comm	_PCI_BASE_ADDRESS_IO_MASK,4,2   ; @PCI_BASE_ADDRESS_IO_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
