	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcifront_attach_devices
_pcifront_attach_devices:               ## @pcifront_attach_devices
	.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	$88, %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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	callq	_xenbus_read_driver_state
	movq	_XenbusStateReconfiguring@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.1:
	movq	_XBT_NIL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-116(%rbp), %r8
	xorl	%eax, %eax
	callq	_xenbus_scanf
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_5
## %bb.2:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %esi
	callq	_xenbus_dev_error
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pcifront_rescan_root
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
	movl	%r15d, %ebx
	jmp	LBB0_21
LBB0_5:
	cmpl	$1, %ebx
	je	LBB0_9
## %bb.6:
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %rdx
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
	jmp	LBB0_21
LBB0_4:
	movl	$0, -116(%rbp)
	jmp	LBB0_20
LBB0_9:
	cmpl	$0, -116(%rbp)
	jle	LBB0_10
## %bb.11:
	leaq	-112(%rbp), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$64, %esi
	leaq	L_.str.5(%rip), %rdx
	movl	%r15d, %ecx
	callq	_snprintf
	xorl	%edi, %edi
	cmpl	$63, %eax
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r12), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	leaq	L_.str.6(%rip), %rcx
	leaq	-124(%rbp), %r8
	leaq	-120(%rbp), %r9
	xorl	%eax, %eax
	callq	_xenbus_scanf
	cmpl	$2, %eax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-124(%rbp), %esi
	movl	-120(%rbp), %edx
	movq	%r14, %rdi
	callq	_pcifront_rescan_root
	testl	%eax, %eax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%r15d
	cmpl	-116(%rbp), %r15d
	jl	LBB0_12
## %bb.19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_10:
	movl	$1, %ebx
LBB0_20:
	movq	(%r14), %rdi
	movq	_XenbusStateConnected@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xenbus_switch_state
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.7(%rip), %rdx
	movl	%ebx, %esi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
	jmp	LBB0_21
LBB0_17:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	movl	-124(%rbp), %ecx
	movl	-120(%rbp), %r8d
	leaq	L_.str.8(%rip), %rdx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
	jmp	LBB0_21
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_XenbusStateReconfiguring,8,3   ## @XenbusStateReconfiguring
	.comm	_XBT_NIL,4,2                    ## @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"root_num"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"No PCI Roots found, trying 0000:00"

L_.str.3:                               ## @.str.3
	.asciz	"Error scanning PCI root 0000:00"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"Error reading number of PCI roots"

L_.str.5:                               ## @.str.5
	.asciz	"root-%d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.6:                               ## @.str.6
	.asciz	"%x:%x"

L_.str.7:                               ## @.str.7
	.asciz	"Error reading PCI root %d"

L_.str.8:                               ## @.str.8
	.asciz	"Error scanning PCI root %04x:%02x"

	.comm	_XenbusStateConnected,4,2       ## @XenbusStateConnected
	.no_dead_strip	_pcifront_attach_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcifront_attach_devices
_pcifront_attach_devices:               ; @pcifront_attach_devices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	bl	_xenbus_read_driver_state
Lloh6:
	adrp	x8, _XenbusStateReconfiguring@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XenbusStateReconfiguring@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
Lloh9:
	adrp	x24, _XBT_NIL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _XBT_NIL@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x8, [x19]
	ldr	w1, [x8]
	add	x8, sp, #36
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_xenbus_scanf
	mov	x20, x0
Lloh15:
	adrp	x8, _ENOENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x19]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_xenbus_dev_error
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_pcifront_rescan_root
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.3:
	ldr	x0, [x19]
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_4:
	neg	w20, w20
	b	LBB0_20
LBB0_5:
	cmp	w20, #1
	b.eq	LBB0_11
; %bb.6:
	cbnz	w20, LBB0_8
; %bb.7:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	ldr	x0, [x19]
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_9:
	mov	x1, x20
	bl	_xenbus_dev_fatal
	b	LBB0_20
LBB0_10:
	str	wzr, [sp, #36]
	b	LBB0_19
LBB0_11:
	ldr	w8, [sp, #36]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.12:
	mov	w21, #0
Lloh27:
	adrp	x22, l_.str.5@PAGE
Lloh28:
	add	x22, x22, l_.str.5@PAGEOFF
	add	x25, sp, #28
	add	x26, sp, #32
Lloh29:
	adrp	x23, l_.str.6@PAGE
Lloh30:
	add	x23, x23, l_.str.6@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #40
	mov	w1, #64
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
	cmp	w0, #62
	cset	w0, hi
	bl	_unlikely
	cbnz	x0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x24]
	ldr	x8, [x19]
	ldr	w1, [x8]
	stp	x26, x25, [sp]
	add	x2, sp, #40
	mov	x3, x23
	bl	_xenbus_scanf
	cmp	w0, #2
	b.ne	LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldp	w2, w1, [sp, #28]
	mov	x0, x19
	bl	_pcifront_rescan_root
	cbnz	w0, LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w21, w21, #1
	ldr	w8, [sp, #36]
	cmp	w21, w8
	b.lt	LBB0_13
; %bb.17:
	mov	w20, #0
	b	LBB0_19
LBB0_18:
	mov	w20, #1
LBB0_19:
	ldr	x0, [x19]
Lloh31:
	adrp	x8, _XenbusStateConnected@GOTPAGE
Lloh32:
	ldr	x8, [x8, _XenbusStateConnected@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_xenbus_switch_state
LBB0_20:
	ldur	x8, [x29, #-72]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.21:
	mov	x0, x20
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_22:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_20
LBB0_23:
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w20, w0, w8, lt
	ldr	x0, [x19]
	str	x21, [sp]
Lloh43:
	adrp	x2, l_.str.7@PAGE
Lloh44:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_9
LBB0_24:
	mov	x20, x0
	ldr	x0, [x19]
	ldp	w9, w8, [sp, #28]
	stp	x8, x9, [sp]
Lloh45:
	adrp	x2, l_.str.8@PAGE
Lloh46:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_9
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_XenbusStateReconfiguring,8,3   ; @XenbusStateReconfiguring
	.comm	_XBT_NIL,4,2                    ; @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"root_num"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"No PCI Roots found, trying 0000:00"

l_.str.3:                               ; @.str.3
	.asciz	"Error scanning PCI root 0000:00"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"Error reading number of PCI roots"

l_.str.5:                               ; @.str.5
	.asciz	"root-%d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.6:                               ; @.str.6
	.asciz	"%x:%x"

l_.str.7:                               ; @.str.7
	.asciz	"Error reading PCI root %d"

l_.str.8:                               ; @.str.8
	.asciz	"Error scanning PCI root %04x:%02x"

	.comm	_XenbusStateConnected,4,2       ; @XenbusStateConnected
	.no_dead_strip	_pcifront_attach_devices
.subsections_via_symbols
