	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -40(%rbp)
	movq	8(%rdi), %rdx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movl	$1, %esi
	movl	%r14d, %ecx
	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, %ebx                    ## imm = 0xFFFF
LBB0_3:
	leal	(%r14,%r14), %r12d
	addl	$16, %r12d
	movq	%r15, %rdi
	callq	_vp702x_set_pld_state
	movl	(%r15), %edi
	movl	%ebx, %edx
	andl	$65280, %edx                    ## imm = 0xFF00
	orl	%r12d, %edx
	leaq	-112(%rbp), %r12
	movl	$224, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movl	$16, %r9d
	callq	_vp702x_usb_in_op
	movl	(%r15), %edi
	shll	$8, %ebx
	movzwl	%bx, %eax
	leal	(%r14,%r14), %edx
	addl	$17, %edx
	orl	%eax, %edx
	movl	$224, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movl	$16, %r9d
	callq	_vp702x_usb_in_op
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.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:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
	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	w21, w2, #1
	add	w22, w21, #16
	mov	x0, x19
	bl	_vp702x_set_pld_state
	ldr	w0, [x19]
	and	w8, w20, #0xff00
	orr	w2, w8, w22
	mov	x4, sp
	mov	w1, #224
	mov	w3, #0
	mov	w5, #16
	bl	_vp702x_usb_in_op
	ldr	w0, [x19]
	ubfiz	w8, w20, #8, #8
	add	w9, w21, #17
	orr	w2, w8, w9
	mov	x4, sp
	mov	w1, #224
	mov	w3, #0
	mov	w5, #16
	bl	_vp702x_usb_in_op
	ldur	x8, [x29, #-40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vp702x_set_pid
.subsections_via_symbols
