	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54u_load_firmware
_p54u_load_firmware:                    ## @p54u_load_firmware
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_interface_to_usbdev
	movq	%rax, %r15
	movq	(%rbx), %r12
	movq	_p54u_fwlist@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movq	___NUM_P54U_HWTYPES@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUILD_BUG_ON
	leaq	8(%r12), %rdi
	callq	_init_completion
	movq	%r12, %rdi
	callq	_p54_find_type
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	(%r12), %rdi
	movq	(%r13), %rax
	movq	%r15, %r13
	movl	%ebx, %r15d
	movl	(%rax,%r15,4), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%r14, %rdi
	callq	_usb_get_intf
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_p54u_fwlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_p54u_load_firmware_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	$1, %esi
	movq	%r13, %rcx
	movq	%r12, %r9
	callq	_request_firmware_nowait
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	(%r12), %rdi
	movq	_p54u_fwlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_usb_put_intf
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_p54u_fwlist,8,3                ## @p54u_fwlist
	.comm	___NUM_P54U_HWTYPES,8,3         ## @__NUM_P54U_HWTYPES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Loading firmware file %s\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_p54u_load_firmware_cb,4,2      ## @p54u_load_firmware_cb
L_.str.1:                               ## @.str.1
	.asciz	"(p54usb) cannot load firmware %s (%d)!\n"

	.no_dead_strip	_p54u_load_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54u_load_firmware
_p54u_load_firmware:                    ; @p54u_load_firmware
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_interface_to_usbdev
	mov	x21, x0
	ldr	x20, [x20]
Lloh0:
	adrp	x23, _p54u_fwlist@GOTPAGE
Lloh1:
	ldr	x23, [x23, _p54u_fwlist@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
Lloh2:
	adrp	x8, ___NUM_P54U_HWTYPES@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___NUM_P54U_HWTYPES@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_BUILD_BUG_ON
	add	x0, x20, #8
	bl	_init_completion
	mov	x0, x20
	bl	_p54_find_type
	mov	x22, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x0, [x20]
	ldr	x8, [x23]
	mov	w24, w22
	lsl	x22, x24, #2
	ldr	w2, [x8, x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	bl	_usb_get_intf
Lloh7:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x23]
	ldr	w2, [x8, x22]
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
Lloh13:
	adrp	x8, _p54u_load_firmware_cb@GOTPAGE
Lloh14:
	ldr	x8, [x8, _p54u_load_firmware_cb@GOTPAGEOFF]
Lloh15:
	ldr	w6, [x8]
	mov	w1, #1
	mov	x3, x21
	mov	x5, x20
	bl	_request_firmware_nowait
	mov	x22, x0
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x20]
	ldr	x8, [x23]
	ldr	w2, [x8, x24, lsl #2]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_dev_err
	mov	x0, x19
	bl	_usb_put_intf
LBB0_3:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_p54u_fwlist,8,3                ; @p54u_fwlist
	.comm	___NUM_P54U_HWTYPES,8,3         ; @__NUM_P54U_HWTYPES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Loading firmware file %s\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_p54u_load_firmware_cb,4,2      ; @p54u_load_firmware_cb
l_.str.1:                               ; @.str.1
	.asciz	"(p54usb) cannot load firmware %s (%d)!\n"

	.no_dead_strip	_p54u_load_firmware
.subsections_via_symbols
