	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54u_start_ops
_p54u_start_ops:                        ## @p54u_start_ops
	.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
	movq	24(%rdi), %r14
	movl	32(%rdi), %esi
	movq	%r14, %rdi
	callq	_p54_parse_firmware
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	callq	_p54_find_type
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	16(%r15), %rdx
	movq	_p54u_fwlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	shlq	$4, %rcx
	cmpq	(%rax,%rcx), %rdx
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%r14, %rdi
	callq	_p54u_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	callq	_p54_read_eeprom
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_p54u_stop
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_p54_register_common
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_p54u_stop
	jmp	LBB0_10
LBB0_3:
	movq	8(%r15), %rdi
	movl	8(%rax,%rcx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_p54u_fwlist,8,3                ## @p54u_fwlist
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong firmware, please get a firmware for \"%s\" and try again.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_p54u_start_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54u_start_ops
_p54u_start_ops:                        ; @p54u_start_ops
	.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, x0
	ldr	x19, [x0, #24]
	ldr	w1, [x0, #32]
	mov	x0, x19
	bl	_p54_parse_firmware
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x21
	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
	ret
LBB0_2:
	mov	x0, x20
	bl	_p54_find_type
	mov	x21, x0
	tbnz	w0, #31, LBB0_1
; %bb.3:
	ldr	x10, [x20, #16]
Lloh0:
	adrp	x8, _p54u_fwlist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _p54u_fwlist@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, w21
	lsl	x11, x9, #4
	ldr	x11, [x8, x11]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_1
; %bb.5:
	mov	x0, x19
	bl	_p54u_open
	mov	x21, x0
	cbnz	w0, LBB0_1
; %bb.6:
	mov	x0, x19
	bl	_p54_read_eeprom
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_p54u_stop
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_p54_register_common
	mov	x21, x0
	cbz	w0, LBB0_1
LBB0_8:
	mov	x0, x19
	bl	_p54u_stop
	b	LBB0_1
LBB0_9:
	ldr	x0, [x20, #8]
	add	x8, x8, x9, lsl #4
	ldr	w2, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_p54u_fwlist,8,3                ; @p54u_fwlist
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong firmware, please get a firmware for \"%s\" and try again.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_p54u_start_ops
.subsections_via_symbols
