	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcifront_publish_info
_pcifront_publish_info:                 ## @pcifront_publish_info
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	movl	24(%r14), %esi
	leaq	-52(%rbp), %rcx
	movl	$1, %edx
	callq	_xenbus_grant_ring
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-52(%rbp), %eax
	movl	%eax, 20(%r14)
	movq	8(%r14), %rdi
	leaq	16(%r14), %rsi
	callq	_xenbus_alloc_evtchn
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movl	16(%r14), %edi
	movq	_pcifront_handler_aer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_bind_evtchn_to_irqhandler
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.4:
	movl	%ebx, (%r14)
	leaq	-48(%rbp), %r15
	leaq	L_.str.3(%rip), %r13
	leaq	L_.str.4(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_xenbus_transaction_start
	movq	8(%r14), %rdi
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rdi), %esi
	movl	20(%r14), %r8d
	movl	-48(%rbp), %edi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_xenbus_printf
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rax
	movl	4(%rax), %esi
	movl	16(%r14), %r8d
	movl	-48(%rbp), %edi
	movq	%r12, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_xenbus_printf
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rax
	movl	4(%rax), %esi
	movq	_XEN_PCI_MAGIC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movl	-48(%rbp), %edi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_xenbus_printf
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %edi
	xorl	%esi, %esi
	callq	_xenbus_transaction_end
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_5
## %bb.12:
	movq	8(%r14), %rdi
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.13:
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_14
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %ebx
	movl	-48(%rbp), %edi
	movl	$1, %esi
	callq	_xenbus_transaction_end
	movq	8(%r14), %rdi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_14
LBB0_6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdx
LBB0_14:
	movl	%ebx, %esi
	callq	_xenbus_dev_fatal
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_XenbusStateInitialised@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xenbus_switch_state
	movq	8(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_pcifront_handler_aer,4,2       ## @pcifront_handler_aer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcifront"

L_.str.1:                               ## @.str.1
	.asciz	"Error writing configuration for backend (start transaction)"

L_.str.2:                               ## @.str.2
	.asciz	"pci-op-ref"

L_.str.3:                               ## @.str.3
	.asciz	"%u"

L_.str.4:                               ## @.str.4
	.asciz	"event-channel"

L_.str.5:                               ## @.str.5
	.asciz	"magic"

	.comm	_XEN_PCI_MAGIC,4,2              ## @XEN_PCI_MAGIC
L_.str.6:                               ## @.str.6
	.asciz	"Error writing configuration for backend"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.7:                               ## @.str.7
	.asciz	"Error completing transaction for backend"

	.comm	_XenbusStateInitialised,4,2     ## @XenbusStateInitialised
L_.str.8:                               ## @.str.8
	.asciz	"publishing successful!\n"

	.no_dead_strip	_pcifront_publish_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcifront_publish_info
_pcifront_publish_info:                 ; @pcifront_publish_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	w1, [x19, #24]
	add	x3, sp, #20
	mov	w2, #1
	bl	_xenbus_grant_ring
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	w8, [sp, #20]
	str	w8, [x19, #20]
	ldr	x0, [x19, #8]
	add	x1, x19, #16
	bl	_xenbus_alloc_evtchn
	mov	x20, x0
	cbnz	w0, LBB0_15
; %bb.2:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _pcifront_handler_aer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pcifront_handler_aer@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #0
	mov	x4, x19
	bl	_bind_evtchn_to_irqhandler
	mov	x20, x0
	tbnz	w0, #31, LBB0_15
; %bb.3:
	str	w20, [x19]
Lloh5:
	adrp	x21, l_.str.2@PAGE
Lloh6:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh7:
	adrp	x22, l_.str.3@PAGE
Lloh8:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh9:
	adrp	x23, l_.str.4@PAGE
Lloh10:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh11:
	adrp	x25, _XEN_PCI_MAGIC@GOTPAGE
Lloh12:
	ldr	x25, [x25, _XEN_PCI_MAGIC@GOTPAGEOFF]
Lloh13:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
Lloh15:
	adrp	x24, l_.str.5@PAGE
Lloh16:
	add	x24, x24, l_.str.5@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	bl	_xenbus_transaction_start
	mov	x20, x0
	ldr	x0, [x19, #8]
	cbnz	w20, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x0, #4]
	ldr	w0, [sp, #24]
	ldr	w8, [x19, #20]
	str	x8, [sp]
	mov	x2, x21
	mov	x3, x22
	bl	_xenbus_printf
	cbnz	w0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	ldr	w0, [sp, #24]
	ldr	w8, [x19, #16]
	str	x8, [sp]
	mov	x2, x23
	mov	x3, x22
	bl	_xenbus_printf
	cbnz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	ldrsw	x3, [x25]
	ldr	w0, [sp, #24]
	mov	x2, x24
	bl	_xenbus_printf
	cbnz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #24]
	mov	w1, #0
	bl	_xenbus_transaction_end
	ldr	w8, [x26]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.9:
	mov	x20, x0
	ldr	x0, [x19, #8]
	cbz	w20, LBB0_16
; %bb.10:
Lloh17:
	adrp	x2, l_.str.7@PAGE
Lloh18:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_14
LBB0_11:
	mov	x20, x0
	b	LBB0_15
LBB0_12:
	mov	x20, x0
	ldr	w0, [sp, #24]
	mov	w1, #1
	bl	_xenbus_transaction_end
	ldr	x0, [x19, #8]
Lloh19:
	adrp	x2, l_.str.6@PAGE
Lloh20:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_14:
	mov	x1, x20
	bl	_xenbus_dev_fatal
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
Lloh23:
	adrp	x8, _XenbusStateInitialised@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XenbusStateInitialised@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_xenbus_switch_state
	ldr	x0, [x19, #8]
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_dbg
	b	LBB0_15
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_pcifront_handler_aer,4,2       ; @pcifront_handler_aer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcifront"

l_.str.1:                               ; @.str.1
	.asciz	"Error writing configuration for backend (start transaction)"

l_.str.2:                               ; @.str.2
	.asciz	"pci-op-ref"

l_.str.3:                               ; @.str.3
	.asciz	"%u"

l_.str.4:                               ; @.str.4
	.asciz	"event-channel"

l_.str.5:                               ; @.str.5
	.asciz	"magic"

	.comm	_XEN_PCI_MAGIC,4,2              ; @XEN_PCI_MAGIC
l_.str.6:                               ; @.str.6
	.asciz	"Error writing configuration for backend"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.7:                               ; @.str.7
	.asciz	"Error completing transaction for backend"

	.comm	_XenbusStateInitialised,4,2     ; @XenbusStateInitialised
l_.str.8:                               ; @.str.8
	.asciz	"publishing successful!\n"

	.no_dead_strip	_pcifront_publish_info
.subsections_via_symbols
