	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ezusb_read_pda
_ezusb_read_pda:                        ## @ezusb_read_pda
	.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
	movl	%ecx, %ebx
	movq	%rsi, %r12
	movq	(%rdi), %r14
	movzwl	%dx, %edi
	callq	_cpu_to_le16
	movl	%eax, -48(%rbp)
	leal	-4(%rbx), %r15d
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movl	%eax, -44(%rbp)
	movq	_EZUSB_RID_READ_PDA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%edx, %esi
	callq	_ezusb_alloc_ctx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	addl	$-2, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movl	%eax, (%r12)
	movl	$2048, %edi                     ## imm = 0x800
	callq	_cpu_to_le16
	movl	%eax, 4(%r12)
	movq	_EZUSB_FRAME_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	addq	$8, %r12
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	movq	%r12, %r9
	pushq	$0
	pushq	%r15
	callq	_ezusb_access_ltv
	addq	$16, %rsp
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EZUSB_RID_READ_PDA,4,2         ## @EZUSB_RID_READ_PDA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EZUSB_FRAME_CONTROL,4,2        ## @EZUSB_FRAME_CONTROL
	.no_dead_strip	_ezusb_read_pda
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ezusb_read_pda
_ezusb_read_pda:                        ; @ezusb_read_pda
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x1
	ldr	x19, [x0]
	and	w0, w2, #0xffff
	bl	_cpu_to_le16
	str	w0, [sp, #8]
	sub	w20, w22, #4
	mov	x0, x20
	bl	_cpu_to_le16
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _EZUSB_RID_READ_PDA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EZUSB_RID_READ_PDA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x1
	bl	_ezusb_alloc_ctx
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
	sub	w0, w22, #2
	bl	_cpu_to_le16
	str	w0, [x21]
	mov	w0, #2048
	bl	_cpu_to_le16
	str	w0, [x21, #4]
Lloh3:
	adrp	x8, _EZUSB_FRAME_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EZUSB_FRAME_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	add	x5, x21, #8
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x23
	mov	w2, #8
	mov	x6, x20
	mov	x7, #0
	bl	_ezusb_access_ltv
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EZUSB_RID_READ_PDA,4,2         ; @EZUSB_RID_READ_PDA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EZUSB_FRAME_CONTROL,4,2        ; @EZUSB_FRAME_CONTROL
	.no_dead_strip	_ezusb_read_pda
.subsections_via_symbols
