	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shpc_probe
_shpc_probe:                            ## @shpc_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, %rbx
	callq	_shpc_capable
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movq	%rbx, %rdi
	callq	_acpi_get_hp_hw_control_from_firmware
	testq	%rax, %rax
	jne	LBB0_12
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_shpc_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ctrl_dbg
	jmp	LBB0_11
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	movq	%r14, %rdi
	callq	_init_slots
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_ctrl_err
	jmp	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	callq	_shpchp_create_ctrl_files
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	callq	_cleanup_slots
LBB0_10:
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
LBB0_11:
	movq	%r14, %rdi
	callq	_kfree
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movl	$1, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Controller initialization failed\n"

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

	.no_dead_strip	_shpc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shpc_probe
_shpc_probe:                            ; @shpc_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
	mov	x20, x0
	bl	_shpc_capable
	cbz	w0, LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_acpi_get_hp_hw_control_from_firmware
	cbnz	x0, LBB0_11
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x19, x0
	add	x0, x0, #8
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	mov	x1, x20
	bl	_shpc_init
	cbz	w0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ctrl_dbg
	b	LBB0_10
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_pci_set_drvdata
	mov	x0, x19
	bl	_init_slots
	cbz	w0, LBB0_7
; %bb.6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ctrl_err
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_shpchp_create_ctrl_files
	cbz	w0, LBB0_13
; %bb.8:
	mov	x0, x19
	bl	_cleanup_slots
LBB0_9:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Controller initialization failed\n"

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

	.no_dead_strip	_shpc_probe
.subsections_via_symbols
