	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ezusb_write_ltv
_ezusb_write_ltv:                       ## @ezusb_write_ltv
	.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
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.3:
	movq	%r8, %r14
	movl	%edx, %ebx
	movq	(%rdi), %r15
	movl	%ecx, %edi
	callq	_HERMES_RECLEN_TO_BYTES
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r12d
	movq	_EZUSB_RID_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ezusb_alloc_ctx
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_EZUSB_RID_TX@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_8
## %bb.9:
	movq	_EZUSB_FRAME_DATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_8:
	movq	_EZUSB_FRAME_CONTROL@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_ezusb_access_ltv
	addq	$16, %rsp
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EZUSB_RID_ACK,4,2              ## @EZUSB_RID_ACK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EZUSB_RID_TX,4,2               ## @EZUSB_RID_TX
	.comm	_EZUSB_FRAME_DATA,4,2           ## @EZUSB_FRAME_DATA
	.comm	_EZUSB_FRAME_CONTROL,4,2        ## @EZUSB_FRAME_CONTROL
	.no_dead_strip	_ezusb_write_ltv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ezusb_write_ltv
_ezusb_write_ltv:                       ; @ezusb_write_ltv
	.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
	cbz	w3, LBB0_4
; %bb.1:
	mov	x19, x4
	mov	x21, x2
	ldr	x20, [x0]
	mov	x0, x3
	bl	_HERMES_RECLEN_TO_BYTES
	cbz	w0, LBB0_7
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x8, _EZUSB_RID_ACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EZUSB_RID_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_ezusb_alloc_ctx
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x0
Lloh3:
	adrp	x8, _EZUSB_RID_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EZUSB_RID_TX@GOTPAGEOFF]
Lloh5:
	adrp	x9, _EZUSB_FRAME_DATA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EZUSB_FRAME_DATA@GOTPAGEOFF]
Lloh7:
	adrp	x10, _EZUSB_FRAME_CONTROL@GOTPAGE
Lloh8:
	ldr	x10, [x10, _EZUSB_FRAME_CONTROL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w21
	csel	x8, x9, x10, eq
	ldr	w4, [x8]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x19
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	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	_ezusb_access_ltv
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EZUSB_RID_ACK,4,2              ; @EZUSB_RID_ACK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EZUSB_RID_TX,4,2               ; @EZUSB_RID_TX
	.comm	_EZUSB_FRAME_DATA,4,2           ; @EZUSB_FRAME_DATA
	.comm	_EZUSB_FRAME_CONTROL,4,2        ; @EZUSB_FRAME_CONTROL
	.no_dead_strip	_ezusb_write_ltv
.subsections_via_symbols
