	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp702x_set_pid
_vp702x_set_pid:                        ## @vp702x_set_pid
	.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, %eax
	movl	%edx, %ecx
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdx
	movq	(%rsi), %r13
	movl	$1, %esi
	shll	%cl, %esi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	orl	(%rdx), %esi
	movl	%esi, (%rdx)
	jmp	LBB0_3
LBB0_2:
	notl	%esi
	andl	(%rdx), %esi
	movl	%esi, (%rdx)
	movl	$65535, %r15d                   ## imm = 0xFFFF
LBB0_3:
	leal	(%rcx,%rcx), %r14d
	addl	$16, %r14d
	movq	%rbx, %rdi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_vp702x_set_pld_state
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%r13), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	(%rbx), %rdi
	movl	%r15d, %edx
	andl	$65280, %edx                    ## imm = 0xFF00
	orl	%r14d, %edx
	movl	$224, %esi
	xorl	%ecx, %ecx
	movq	%r13, %r8
	movl	$16, %r9d
	callq	_vp702x_usb_in_op
	movq	(%rbx), %rdi
	shll	$8, %r15d
	movzwl	%r15w, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rcx), %edx
	addl	$17, %edx
	orl	%eax, %edx
	movl	$224, %esi
	xorl	%ecx, %ecx
	movq	%r13, %r8
	movl	$16, %r9d
	callq	_vp702x_usb_in_op
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vp702x_set_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp702x_set_pid
_vp702x_set_pid:                        ; @vp702x_set_pid
	.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, x0
	ldp	x9, x8, [x0]
	ldr	x22, [x9]
	mov	w9, #1
	lsl	w9, w9, w2
	cbz	w3, LBB0_2
; %bb.1:
	mov	x20, x1
	ldr	w10, [x8]
	orr	w1, w10, w9
	str	w1, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w10, [x8]
	bic	w1, w10, w9
	str	w1, [x8]
	mov	w20, #65535
LBB0_3:
	lsl	w23, w2, #1
	add	w24, w23, #16
	mov	x0, x19
	bl	_vp702x_set_pld_state
	add	x21, x22, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x22, [x22]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x0, [x19]
	and	w8, w20, #0xff00
	orr	w2, w8, w24
	mov	w1, #224
	mov	w3, #0
	mov	x4, x22
	mov	w5, #16
	bl	_vp702x_usb_in_op
	ldr	x0, [x19]
	ubfiz	w8, w20, #8, #8
	add	w9, w23, #17
	orr	w2, w8, w9
	mov	w1, #224
	mov	w3, #0
	mov	x4, x22
	mov	w5, #16
	bl	_vp702x_usb_in_op
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vp702x_set_pid
.subsections_via_symbols
