	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pciehp_probe
_pciehp_probe:                          ## @pciehp_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_PCIE_PORT_SERVICE_HP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	callq	_pcie_init
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_set_service_data
	movq	%r14, %rdi
	callq	_init_slot
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_ctrl_warn
	jmp	LBB0_15
LBB0_2:
	leaq	L_.str(%rip), %rsi
	callq	_pci_err
	jmp	LBB0_16
LBB0_5:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_pci_err
	jmp	LBB0_16
LBB0_10:
	movq	%r14, %rdi
	callq	_pcie_init_notification
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ctrl_err
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ctrl_err
	jmp	LBB0_15
LBB0_12:
	movq	%r14, %rdi
	callq	_pci_hp_add
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ctrl_err
	movq	%r14, %rdi
	callq	_pcie_shutdown_notification
LBB0_14:
	movq	%r14, %rdi
	callq	_cleanup_slot
LBB0_15:
	movq	%r14, %rdi
	callq	_pciehp_release_ctrl
LBB0_16:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_18:
	movq	%r14, %rdi
	callq	_pciehp_check_presence
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIE_PORT_SERVICE_HP,8,3       ## @PCIE_PORT_SERVICE_HP
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hotplug bridge without secondary bus, ignoring\n"

L_.str.1:                               ## @.str.1
	.asciz	"Controller initialization failed\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"Slot already registered by another hotplug driver\n"

L_.str.3:                               ## @.str.3
	.asciz	"Slot initialization failed (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Notification initialization failed (%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Publication to user space failed (%d)\n"

	.no_dead_strip	_pciehp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pciehp_probe
_pciehp_probe:                          ; @pciehp_probe
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCIE_PORT_SERVICE_HP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCIE_PORT_SERVICE_HP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0, #8]
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_pcie_init
	cbz	x0, LBB0_7
; %bb.3:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_set_service_data
	mov	x0, x19
	bl	_init_slot
	cbz	w0, LBB0_8
; %bb.4:
	mov	x2, x0
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
; %bb.5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ctrl_warn
	b	LBB0_14
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pci_err
	b	LBB0_15
LBB0_7:
	ldr	x0, [x20, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pci_err
	b	LBB0_15
LBB0_8:
	mov	x0, x19
	bl	_pcie_init_notification
	cbz	w0, LBB0_11
; %bb.9:
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ctrl_err
	b	LBB0_13
LBB0_10:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ctrl_err
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_pci_hp_add
	cbz	w0, LBB0_17
; %bb.12:
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ctrl_err
	mov	x0, x19
	bl	_pcie_shutdown_notification
LBB0_13:
	mov	x0, x19
	bl	_cleanup_slot
LBB0_14:
	mov	x0, x19
	bl	_pciehp_release_ctrl
LBB0_15:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x0, x19
	bl	_pciehp_check_presence
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE_PORT_SERVICE_HP,8,3       ; @PCIE_PORT_SERVICE_HP
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hotplug bridge without secondary bus, ignoring\n"

l_.str.1:                               ; @.str.1
	.asciz	"Controller initialization failed\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"Slot already registered by another hotplug driver\n"

l_.str.3:                               ; @.str.3
	.asciz	"Slot initialization failed (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Notification initialization failed (%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Publication to user space failed (%d)\n"

	.no_dead_strip	_pciehp_probe
.subsections_via_symbols
