	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54p_firmware_step2
_p54p_firmware_step2:                   ## @p54p_firmware_step2
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	16(%rsi), %r14
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	24(%rbx), %r15
	movq	%rdi, 8(%rbx)
	movq	%r15, %rdi
	callq	_p54p_open
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	%r15, %rdi
	callq	_p54_read_eeprom
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_p54p_stop
	testl	%r12d, %r12d
	je	LBB0_4
LBB0_10:
	movq	%rbx, %rdi
	callq	_complete
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_p54_register_common
	movl	%eax, %r15d
LBB0_5:
	movq	%rbx, %rdi
	callq	_complete
	testl	%r15d, %r15d
	je	LBB0_9
LBB0_6:
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_device_lock
	movq	%r14, %rdi
	callq	_device_release_driver
	movq	%rbx, %rdi
	callq	_device_unlock
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_device_release_driver
LBB0_9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_dev_put                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find firmware (isl3886pci)\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_p54p_firmware_step2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54p_firmware_step2
_p54p_firmware_step2:                   ; @p54p_firmware_step2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	ldr	x19, [x1, #16]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x21, [x20, #24]
	str	x0, [x20, #8]
	mov	x0, x21
	bl	_p54p_open
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_p54_read_eeprom
	mov	x22, x0
	mov	x0, x21
	bl	_p54p_stop
	cbz	w22, LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_complete
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	bl	_p54_register_common
	mov	x21, x0
LBB0_6:
	mov	x0, x20
	bl	_complete
	cbz	w21, LBB0_10
LBB0_7:
	ldr	x20, [x19]
	cbz	x20, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_device_lock
	mov	x0, x19
	bl	_device_release_driver
	mov	x0, x20
	bl	_device_unlock
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_device_release_driver
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pci_dev_put
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find firmware (isl3886pci)\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_p54p_firmware_step2
.subsections_via_symbols
