	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___pci_reset_function_locked    ## -- Begin function __pci_reset_function_locked
	.p2align	4, 0x90
___pci_reset_function_locked:           ## @__pci_reset_function_locked
	.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
	xorl	%eax, %eax
	callq	_might_sleep
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_dev_specific_reset
	movq	_ENOTTY@GOTPCREL(%rip), %r14
	movl	%eax, %ecx
	addl	(%r14), %ecx
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_pcie_has_flr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_pcie_flr
	movl	%eax, %ecx
	addl	(%r14), %ecx
	jne	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_af_flr
	movl	%eax, %ecx
	addl	(%r14), %ecx
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_pm_reset
	movl	%eax, %ecx
	addl	(%r14), %ecx
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pci_dev_reset_slot_function
	movl	%eax, %ecx
	addl	(%r14), %ecx
	jne	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pci_parent_bus_reset           ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTTY,4,2                     ## @ENOTTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___pci_reset_function_locked    ; -- Begin function __pci_reset_function_locked
	.p2align	2
___pci_reset_function_locked:           ; @__pci_reset_function_locked
	.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	_might_sleep
	mov	x0, x19
	mov	w1, #0
	bl	_pci_dev_specific_reset
Lloh0:
	adrp	x20, _ENOTTY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ENOTTY@GOTPAGEOFF]
	ldr	w8, [x20]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_pcie_has_flr
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_pcie_flr
	ldr	w8, [x20]
	cmn	w0, w8
	b.ne	LBB0_7
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_af_flr
	ldr	w8, [x20]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_pm_reset
	ldr	w8, [x20]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_dev_reset_slot_function
	ldr	w8, [x20]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pci_parent_bus_reset
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTTY,4,2                     ; @ENOTTY
.subsections_via_symbols
