	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_slots
_init_slots:                            ## @init_slots
	.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, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SLOT_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.1:
	leaq	12(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movq	%r12, 56(%rax)
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	24(%r12), %eax
	addl	%r14d, %eax
	cltq
	movq	%rax, 32(%rbx)
	movl	28(%r12), %eax
	movl	%eax, 52(%rbx)
	movl	8(%r12), %ecx
	imull	%r14d, %ecx
	addl	4(%r12), %ecx
	movl	%ecx, 4(%rbx)
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	64(%rbx), %r13
	leaq	48(%rbx), %rdi
	callq	_mutex_init
	leaq	44(%rbx), %rdi
	movq	_shpchp_queue_pushbutton_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	_SLOT_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
	movq	_shpchp_hotplug_slot_ops@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	callq	_pci_domain_nr
	movl	40(%rbx), %ecx
	movq	32(%rbx), %r8
	movl	(%rbx), %r9d
	movl	4(%rbx), %r10d
	movl	24(%r12), %r11d
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	pushq	%r11
	pushq	%r10
	callq	_ctrl_dbg
	addq	$16, %rsp
	movq	16(%r12), %rax
	movq	(%rax), %rsi
	movq	32(%rbx), %rdx
	movq	%r13, %rdi
	movq	%r15, %rcx
	callq	_pci_hp_register
	testl	%eax, %eax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	28(%rbx), %rsi
	movq	%r13, %rdi
	callq	_get_power_status
	leaq	24(%rbx), %rsi
	movq	%r13, %rdi
	callq	_get_attention_status
	leaq	20(%rbx), %rsi
	movq	%r13, %rdi
	callq	_get_latch_status
	leaq	16(%rbx), %rsi
	movq	%r13, %rdi
	callq	_get_adapter_status
	addq	$12, %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add
	incl	%r14d
	cmpl	(%r12), %r14d
	jl	LBB0_2
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ctrl_err
	movl	8(%rbx), %edi
	callq	_destroy_workqueue
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SLOT_NAME_SIZE,4,2             ## @SLOT_NAME_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shpchp-%d"

	.comm	_shpchp_queue_pushbutton_work,4,2 ## @shpchp_queue_pushbutton_work
L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_shpchp_hotplug_slot_ops,4,2    ## @shpchp_hotplug_slot_ops
L_.str.2:                               ## @.str.2
	.asciz	"Registering domain:bus:dev=%04x:%02x:%02x hp_slot=%x sun=%x slot_device_offset=%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"pci_hp_register failed with error %d\n"

	.no_dead_strip	_init_slots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_slots
_init_slots:                            ; @init_slots
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	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, #-88]
Lloh3:
	adrp	x28, _SLOT_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _SLOT_NAME_SIZE@GOTPAGEOFF]
	ldr	w8, [x28]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w24, #0
	add	x21, x19, #12
Lloh7:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	adrp	x23, l_.str@PAGE
Lloh10:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	str	x19, [x0, #56]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x0, #40]
	ldp	w8, w9, [x19, #24]
	add	w8, w24, w8
	sxtw	x8, w8
	str	x8, [x0, #32]
	str	w9, [x0, #52]
	ldp	w8, w9, [x19, #4]
	madd	w3, w9, w24, w8
	stp	w24, w3, [x0]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	bl	_alloc_workqueue
	str	w0, [x22, #8]
	cbz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x22, #64
	add	x0, x22, #48
	bl	_mutex_init
	add	x0, x22, #44
Lloh11:
	adrp	x8, _shpchp_queue_pushbutton_work@GOTPAGE
Lloh12:
	ldr	x8, [x8, _shpchp_queue_pushbutton_work@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	ldr	w1, [x28]
	ldr	w3, [x22, #4]
	mov	x0, x20
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
Lloh16:
	adrp	x8, _shpchp_hotplug_slot_ops@GOTPAGE
Lloh17:
	ldr	x8, [x8, _shpchp_hotplug_slot_ops@GOTPAGEOFF]
	str	x8, [x22, #64]
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_pci_domain_nr
	mov	x2, x0
	ldr	w3, [x22, #40]
	ldr	x4, [x22, #32]
	ldp	w5, w6, [x22]
	ldr	w7, [x19, #24]
	mov	x0, x19
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ctrl_dbg
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	ldr	x2, [x22, #32]
	mov	x0, x26
	mov	x3, x20
	bl	_pci_hp_register
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x22, #28
	mov	x0, x26
	bl	_get_power_status
	add	x1, x22, #24
	mov	x0, x26
	bl	_get_attention_status
	add	x1, x22, #20
	mov	x0, x26
	bl	_get_latch_status
	add	x1, x22, #16
	mov	x0, x26
	bl	_get_adapter_status
	add	x0, x22, #12
	mov	x1, x21
	bl	_list_add
	add	w24, w24, #1
	ldr	w8, [x19]
	cmp	w24, w8
	b.lt	LBB0_2
LBB0_6:
	mov	w27, #0
	b	LBB0_11
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_11
LBB0_8:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_10
LBB0_9:
	mov	x27, x0
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x27
	bl	_ctrl_err
	ldr	w0, [x22, #8]
	bl	_destroy_workqueue
LBB0_10:
	mov	x0, x22
	bl	_kfree
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x27
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_SLOT_NAME_SIZE,4,2             ; @SLOT_NAME_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shpchp-%d"

	.comm	_shpchp_queue_pushbutton_work,4,2 ; @shpchp_queue_pushbutton_work
l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_shpchp_hotplug_slot_ops,4,2    ; @shpchp_hotplug_slot_ops
l_.str.2:                               ; @.str.2
	.asciz	"Registering domain:bus:dev=%04x:%02x:%02x hp_slot=%x sun=%x slot_device_offset=%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"pci_hp_register failed with error %d\n"

	.no_dead_strip	_init_slots
.subsections_via_symbols
