	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_add_slot
_fs_add_slot:                           ## @fs_add_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	%rdi, %r15
	callq	_pci_hp_create_module_link
	movq	%r15, %rdi
	callq	_has_power_file
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_hotplug_slot_attr_power@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_create_file
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_18
LBB0_2:
	movq	%r15, %rdi
	callq	_has_attention_file
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_hotplug_slot_attr_attention@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_create_file
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_16
LBB0_4:
	movq	%r15, %rdi
	callq	_has_latch_file
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_hotplug_slot_attr_latch@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_create_file
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
LBB0_6:
	movq	%r15, %rdi
	callq	_has_adapter_file
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_hotplug_slot_attr_presence@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_create_file
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
LBB0_8:
	movq	%r15, %rdi
	callq	_has_test_file
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:
	movq	_hotplug_slot_attr_test@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_create_file
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_has_adapter_file
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_hotplug_slot_attr_presence@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_remove_file
LBB0_12:
	movq	%r15, %rdi
	callq	_has_latch_file
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_hotplug_slot_attr_latch@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_remove_file
LBB0_14:
	movq	%r15, %rdi
	callq	_has_attention_file
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_hotplug_slot_attr_attention@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_remove_file
LBB0_16:
	movq	%r15, %rdi
	callq	_has_power_file
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_hotplug_slot_attr_power@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_sysfs_remove_file
LBB0_18:
	movq	%r15, %rdi
	callq	_pci_hp_remove_module_link
	movl	%r14d, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hotplug_slot_attr_power,4,2    ## @hotplug_slot_attr_power
	.comm	_hotplug_slot_attr_attention,4,2 ## @hotplug_slot_attr_attention
	.comm	_hotplug_slot_attr_latch,4,2    ## @hotplug_slot_attr_latch
	.comm	_hotplug_slot_attr_presence,4,2 ## @hotplug_slot_attr_presence
	.comm	_hotplug_slot_attr_test,4,2     ## @hotplug_slot_attr_test
	.no_dead_strip	_fs_add_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_add_slot
_fs_add_slot:                           ; @fs_add_slot
	.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	x19, x0
	bl	_pci_hp_create_module_link
	mov	x0, x19
	bl	_has_power_file
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, _hotplug_slot_attr_power@GOTPAGE
Lloh1:
	ldr	x1, [x1, _hotplug_slot_attr_power@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_file
	mov	x20, x0
	cbnz	w0, LBB0_18
LBB0_2:
	mov	x0, x19
	bl	_has_attention_file
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, _hotplug_slot_attr_attention@GOTPAGE
Lloh3:
	ldr	x1, [x1, _hotplug_slot_attr_attention@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_file
	mov	x20, x0
	cbnz	w0, LBB0_16
LBB0_4:
	mov	x0, x19
	bl	_has_latch_file
	cbz	x0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x1, _hotplug_slot_attr_latch@GOTPAGE
Lloh5:
	ldr	x1, [x1, _hotplug_slot_attr_latch@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_file
	mov	x20, x0
	cbnz	w0, LBB0_14
LBB0_6:
	mov	x0, x19
	bl	_has_adapter_file
	cbz	x0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x1, _hotplug_slot_attr_presence@GOTPAGE
Lloh7:
	ldr	x1, [x1, _hotplug_slot_attr_presence@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_file
	mov	x20, x0
	cbnz	w0, LBB0_12
LBB0_8:
	mov	x0, x19
	bl	_has_test_file
	cbz	x0, LBB0_20
; %bb.9:
Lloh8:
	adrp	x1, _hotplug_slot_attr_test@GOTPAGE
Lloh9:
	ldr	x1, [x1, _hotplug_slot_attr_test@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_file
	mov	x20, x0
	cbz	w0, LBB0_19
; %bb.10:
	mov	x0, x19
	bl	_has_adapter_file
	cbz	x0, LBB0_12
; %bb.11:
Lloh10:
	adrp	x1, _hotplug_slot_attr_presence@GOTPAGE
Lloh11:
	ldr	x1, [x1, _hotplug_slot_attr_presence@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_file
LBB0_12:
	mov	x0, x19
	bl	_has_latch_file
	cbz	x0, LBB0_14
; %bb.13:
Lloh12:
	adrp	x1, _hotplug_slot_attr_latch@GOTPAGE
Lloh13:
	ldr	x1, [x1, _hotplug_slot_attr_latch@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_file
LBB0_14:
	mov	x0, x19
	bl	_has_attention_file
	cbz	x0, LBB0_16
; %bb.15:
Lloh14:
	adrp	x1, _hotplug_slot_attr_attention@GOTPAGE
Lloh15:
	ldr	x1, [x1, _hotplug_slot_attr_attention@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_file
LBB0_16:
	mov	x0, x19
	bl	_has_power_file
	cbz	x0, LBB0_18
; %bb.17:
Lloh16:
	adrp	x1, _hotplug_slot_attr_power@GOTPAGE
Lloh17:
	ldr	x1, [x1, _hotplug_slot_attr_power@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_file
LBB0_18:
	mov	x0, x19
	bl	_pci_hp_remove_module_link
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	w20, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_hotplug_slot_attr_power,4,2    ; @hotplug_slot_attr_power
	.comm	_hotplug_slot_attr_attention,4,2 ; @hotplug_slot_attr_attention
	.comm	_hotplug_slot_attr_latch,4,2    ; @hotplug_slot_attr_latch
	.comm	_hotplug_slot_attr_presence,4,2 ; @hotplug_slot_attr_presence
	.comm	_hotplug_slot_attr_test,4,2     ; @hotplug_slot_attr_test
	.no_dead_strip	_fs_add_slot
.subsections_via_symbols
