	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_usb_setup_firmware
_if_usb_setup_firmware:                 ## @if_usb_setup_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_LBTF_DEB_USB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_lbtf_deb_enter
	movq	%rbx, %rdi
	callq	_if_usb_submit_rx_urb
	movl	$24, %edi
	callq	_cpu_to_le16
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	_CMD_SET_BOOT2_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lbtf_cmd_with_response
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_lbtf_deb_usb
LBB0_2:
	movl	(%r15), %edi
	callq	_lbtf_deb_leave
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBTF_DEB_USB,4,2               ## @LBTF_DEB_USB
	.comm	_CMD_SET_BOOT2_VER,4,2          ## @CMD_SET_BOOT2_VER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting boot2 version failed\n"

	.no_dead_strip	_if_usb_setup_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_usb_setup_firmware
_if_usb_setup_firmware:                 ; @if_usb_setup_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _LBTF_DEB_USB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LBTF_DEB_USB@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_lbtf_deb_enter
	mov	x0, x20
	bl	_if_usb_submit_rx_urb
	mov	w0, #24
	bl	_cpu_to_le16
	str	w0, [sp, #24]
	str	xzr, [sp, #16]
	ldr	w8, [x20]
	str	w8, [sp, #8]
Lloh2:
	adrp	x8, _CMD_SET_BOOT2_VER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_SET_BOOT2_VER@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_lbtf_cmd_with_response
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbtf_deb_usb
LBB0_2:
	ldr	w0, [x21]
	bl	_lbtf_deb_leave
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LBTF_DEB_USB,4,2               ; @LBTF_DEB_USB
	.comm	_CMD_SET_BOOT2_VER,4,2          ; @CMD_SET_BOOT2_VER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting boot2 version failed\n"

	.no_dead_strip	_if_usb_setup_firmware
.subsections_via_symbols
