	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shpchp_disable_slot
_shpchp_disable_slot:                   ## @shpchp_disable_slot
	.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	$0, -32(%rbp)
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	cmpq	$0, -32(%rbp)
	je	LBB0_3
## %bb.5:
	movq	8(%rbx), %rax
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	cmpq	$0, -32(%rbp)
	jne	LBB0_7
## %bb.8:
	movq	8(%rbx), %rax
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*16(%rax)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	cmpq	$0, -32(%rbp)
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	callq	_remove_board
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_update_slot_info
	jmp	LBB0_12
LBB0_3:
	movq	%rbx, %rdi
	callq	_slot_name
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	movq	%rbx, %rdi
	callq	_slot_name
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_10:
	movq	%rbx, %rdi
	callq	_slot_name
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ctrl_info
LBB0_12:
	movq	(%rbx), %rdi
	callq	_mutex_unlock
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No adapter on slot(%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Latch open on slot(%s)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Already disabled on slot(%s)\n"

	.no_dead_strip	_shpchp_disable_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shpchp_disable_slot
_shpchp_disable_slot:                   ; @shpchp_disable_slot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x21, [x0]
	cbz	x21, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	ldr	x8, [sp, #8]
	cmp	w0, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_slot_name
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	ldr	x8, [sp, #8]
	cmp	w0, #0
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_slot_name
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	ldr	x8, [sp, #8]
	cmp	w0, #0
	mov	x0, x19
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_10
; %bb.6:
	bl	_slot_name
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x21
	bl	_ctrl_info
LBB0_8:
	ldr	x0, [x19]
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	bl	_remove_board
	mov	x20, x0
	mov	x0, x19
	bl	_update_slot_info
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No adapter on slot(%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Latch open on slot(%s)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Already disabled on slot(%s)\n"

	.no_dead_strip	_shpchp_disable_slot
.subsections_via_symbols
