	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_pdev
_alloc_pdev:                            ## @alloc_pdev
	.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	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	___get_free_page
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	$0, (%rax)
	movq	__XEN_PCIB_AERHANDLER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_set_bit
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	%r14, 40(%rbx)
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	movq	_INVALID_EVTCHN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_INVALID_GRANT_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$-1, (%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	_pcifront_do_aer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_dev_dbg
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	__XEN_PCIB_AERHANDLER,4,2       ## @_XEN_PCIB_AERHANDLER
	.comm	_INVALID_EVTCHN,4,2             ## @INVALID_EVTCHN
	.comm	_INVALID_GRANT_REF,4,2          ## @INVALID_GRANT_REF
	.comm	_pcifront_do_aer,4,2            ## @pcifront_do_aer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocated pdev @ 0x%p pdev->sh_info @ 0x%p\n"

	.no_dead_strip	_alloc_pdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_pdev
_alloc_pdev:                            ; @alloc_pdev
	.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
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x21]
	bl	___get_free_page
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x0
	str	xzr, [x0]
Lloh2:
	adrp	x8, __XEN_PCIB_AERHANDLER@GOTPAGE
Lloh3:
	ldr	x8, [x8, __XEN_PCIB_AERHANDLER@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_set_bit
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	str	x20, [x19, #40]
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_spin_lock_init
Lloh5:
	adrp	x8, _INVALID_EVTCHN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INVALID_EVTCHN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _INVALID_GRANT_REF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INVALID_GRANT_REF@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
	mov	w8, #-1
	str	w8, [x19]
	add	x0, x19, #16
Lloh11:
	adrp	x8, _pcifront_do_aer@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pcifront_do_aer@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	x3, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_dbg
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	__XEN_PCIB_AERHANDLER,4,2       ; @_XEN_PCIB_AERHANDLER
	.comm	_INVALID_EVTCHN,4,2             ; @INVALID_EVTCHN
	.comm	_INVALID_GRANT_REF,4,2          ; @INVALID_GRANT_REF
	.comm	_pcifront_do_aer,4,2            ; @pcifront_do_aer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocated pdev @ 0x%p pdev->sh_info @ 0x%p\n"

	.no_dead_strip	_alloc_pdev
.subsections_via_symbols
