	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpci_init_slot                 ## -- Begin function zpci_init_slot
	.p2align	4, 0x90
_zpci_init_slot:                        ## @zpci_init_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SLOT_NAME_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, 16(%rax)
	movq	%r13, %rcx
	movq	%rax, %r13
	addq	$8, %r13
	movq	_s390_hotplug_slot_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movl	(%rcx), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_snprintf
	movl	4(%rbx), %esi
	movq	_ZPCI_DEVFN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r15, %rcx
	callq	_pci_hp_register
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_kfree
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_s390_hotplug_slot_list@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_list_add
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	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	_s390_hotplug_slot_ops,4,2      ## @s390_hotplug_slot_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%08x"

	.comm	_ZPCI_DEVFN,4,2                 ## @ZPCI_DEVFN
	.comm	_s390_hotplug_slot_list,4,2     ## @s390_hotplug_slot_list
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpci_init_slot                 ; -- Begin function zpci_init_slot
	.p2align	2
_zpci_init_slot:                        ; @zpci_init_slot
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	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, #-56]
Lloh3:
	adrp	x23, _SLOT_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SLOT_NAME_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	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
	cbz	x0, LBB0_6
; %bb.1:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh10:
	adrp	x8, _s390_hotplug_slot_ops@GOTPAGE
Lloh11:
	ldr	x8, [x8, _s390_hotplug_slot_ops@GOTPAGEOFF]
	mov	x22, x0
	stp	x8, x19, [x22, #8]!
	ldr	w1, [x23]
	ldr	w3, [x19]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_snprintf
	ldr	w1, [x19, #4]
Lloh14:
	adrp	x8, _ZPCI_DEVFN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZPCI_DEVFN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x3, x20
	bl	_pci_hp_register
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_kfree
LBB0_4:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x1, _s390_hotplug_slot_list@GOTPAGE
Lloh21:
	ldr	x1, [x1, _s390_hotplug_slot_list@GOTPAGEOFF]
	mov	x0, x21
	bl	_list_add
	mov	w0, #0
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SLOT_NAME_SIZE,4,2             ; @SLOT_NAME_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_s390_hotplug_slot_ops,4,2      ; @s390_hotplug_slot_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%08x"

	.comm	_ZPCI_DEVFN,4,2                 ; @ZPCI_DEVFN
	.comm	_s390_hotplug_slot_list,4,2     ; @s390_hotplug_slot_list
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
