	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcifront_connect_and_init_dma
_pcifront_connect_and_init_dma:         ## @pcifront_connect_and_init_dma
	.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, %r14
	movq	_pcifront_dev_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_pcifront_dev@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.5:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_pcifront_dev_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.6:
	negl	%ebx
	jmp	LBB0_7
LBB0_1:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%r14, (%rbx)
	movq	_pcifront_dev_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_swiotlb_nr_tbl
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pci_xen_swiotlb_init_late
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	%r15d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pcifront_dev_lock,4,2          ## @pcifront_dev_lock
	.comm	_pcifront_dev,8,3               ## @pcifront_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Installing PCI frontend\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
L_.str.1:                               ## @.str.1
	.asciz	"Could not setup SWIOTLB!\n"

	.no_dead_strip	_pcifront_connect_and_init_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcifront_connect_and_init_dma
_pcifront_connect_and_init_dma:         ; @pcifront_connect_and_init_dma
	.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
Lloh0:
	adrp	x0, _pcifront_dev_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pcifront_dev_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh2:
	adrp	x20, _pcifront_dev@GOTPAGE
Lloh3:
	ldr	x20, [x20, _pcifront_dev@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _EEXIST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
Lloh7:
	adrp	x0, _pcifront_dev_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _pcifront_dev_lock@GOTPAGEOFF]
	bl	_spin_unlock
	cbz	w20, LBB0_4
; %bb.2:
	neg	w20, w20
	b	LBB0_8
LBB0_3:
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	str	x19, [x20]
Lloh11:
	adrp	x0, _pcifront_dev_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _pcifront_dev_lock@GOTPAGEOFF]
	bl	_spin_unlock
LBB0_4:
	bl	_swiotlb_nr_tbl
	cbz	w0, LBB0_6
; %bb.5:
	mov	w20, #0
	b	LBB0_8
LBB0_6:
	bl	_pci_xen_swiotlb_init_late
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_pcifront_dev_lock,4,2          ; @pcifront_dev_lock
	.comm	_pcifront_dev,8,3               ; @pcifront_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Installing PCI frontend\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
l_.str.1:                               ; @.str.1
	.asciz	"Could not setup SWIOTLB!\n"

	.no_dead_strip	_pcifront_connect_and_init_dma
.subsections_via_symbols
