	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn8_setfidvid
_pn8_setfidvid:                         ## @pn8_setfidvid
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	callq	_pn8_read_pending_wait
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_32
## %bb.1:
	movq	-48(%rbp), %rdi
	callq	_PN8_STA_CFID
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi
	callq	_PN8_STA_CVID
	movl	%eax, %ebx
	cmpl	%r12d, %r13d
	jne	LBB0_3
## %bb.2:
	xorl	%r15d, %r15d
	cmpl	%r14d, %ebx
	je	LBB0_32
LBB0_3:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	cmpl	%r14d, %ebx
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	jle	LBB0_4
## %bb.5:
	leaq	-48(%rbp), %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12), %ecx
	movl	$-1, %esi
	shll	%cl, %esi
	addl	%ebx, %esi
	testl	%esi, %esi
	movl	$0, %eax
	cmovlel	%eax, %esi
	movl	$1, %edx
	movl	%r13d, %edi
	movq	%r14, %rcx
	callq	_pn8_write_fidvid
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi
	callq	_PN8_STA_CVID
	movl	%eax, %ebx
	movl	16(%r12), %edi
	callq	_COUNT_OFF_VST
	cmpl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_6
	jmp	LBB0_9
LBB0_4:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_9:
	movl	4(%r12), %r14d
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.10:
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.11:
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	movl	$1, %edx
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%r12, %rcx
	callq	_pn8_write_fidvid
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rdi
	callq	_PN8_STA_CVID
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	callq	_COUNT_OFF_VST
	cmpl	$2, %r14d
	jl	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	decl	%r14d
	testl	%ebx, %ebx
	jg	LBB0_12
LBB0_16:
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r12d
	cmpl	%r15d, %r13d
	je	LBB0_28
## %bb.17:
	movl	%r15d, %edi
	callq	_FID_TO_VCO_FID
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_FID_TO_VCO_FID
	movl	%r12d, %ecx
	subl	%eax, %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovsl	%ecx, %edx
	cmpl	$3, %edx
	jb	LBB0_26
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	andl	$1, %eax
	movl	$2, %r14d
	subl	%eax, %r14d
	cmpl	%r15d, %r13d
	jge	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$8, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	addl	%r13d, %r14d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	subl	%r14d, %r13d
	movl	%r13d, %r14d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%r13d, %edi
	callq	_FID_TO_VCO_FID
	addl	%eax, %r14d
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	32(%r15), %rdx
	imulq	8(%r15), %rdx
	movl	%r14d, %edi
	movl	%ebx, %esi
	leaq	-48(%rbp), %rcx
	callq	_pn8_write_fidvid
	movq	%r15, %r14
	testl	%eax, %eax
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rdi
	callq	_PN8_STA_CFID
	movl	%eax, %r13d
	movl	20(%r14), %edi
	callq	_COUNT_OFF_IRT
	movl	%r13d, %edi
	callq	_FID_TO_VCO_FID
	movl	%r12d, %ecx
	subl	%eax, %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovsl	%ecx, %edx
	cmpl	$2, %edx
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	ja	LBB0_18
LBB0_26:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	32(%r14), %rdx
	imulq	8(%r14), %rdx
	leaq	-48(%rbp), %rcx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_pn8_write_fidvid
	testl	%eax, %eax
	je	LBB0_27
LBB0_24:
	movl	%eax, %r15d
	movq	_PENDING_STUCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
	jmp	LBB0_32
LBB0_7:
	movl	%eax, %r15d
	movq	_PENDING_STUCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r12)
	jmp	LBB0_32
LBB0_13:
	movl	%eax, %r15d
	movq	_PENDING_STUCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 24(%rcx)
	jmp	LBB0_32
LBB0_27:
	movq	-48(%rbp), %rdi
	callq	_PN8_STA_CFID
	movl	%eax, %r12d
	movl	20(%r14), %edi
	callq	_COUNT_OFF_IRT
LBB0_28:
	xorl	%r15d, %r15d
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %r14d
	cmpl	%r13d, %ebx
	je	LBB0_30
## %bb.29:
	leaq	-48(%rbp), %rcx
	movl	$1, %edx
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_pn8_write_fidvid
	movl	%eax, %r15d
	movq	-48(%rbp), %rdi
	callq	_PN8_STA_CVID
	movl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	callq	_COUNT_OFF_VST
LBB0_30:
	xorl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	xorl	%r13d, %r14d
	orl	%r12d, %r14d
	je	LBB0_32
## %bb.31:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_32:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PENDING_STUCK,4,2              ## @PENDING_STUCK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_pn8_setfidvid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn8_setfidvid
_pn8_setfidvid:                         ; @pn8_setfidvid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_pn8_read_pending_wait
	cbnz	w0, LBB0_29
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_PN8_STA_CFID
	mov	x23, x0
	ldr	x0, [sp, #8]
	bl	_PN8_STA_CVID
	cmp	w23, w20
	ccmp	w0, w21, #0, eq
	b.eq	LBB0_23
; %bb.2:
	mov	x22, x0
	cmp	w0, w21
	b.le	LBB0_6
; %bb.3:
	mov	w24, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	lsl	w8, w24, w8
	add	w8, w8, w22
	cmp	w8, #0
	csel	w1, w8, wzr, gt
	add	x3, sp, #8
	mov	x0, x23
	mov	w2, #1
	bl	_pn8_write_fidvid
	cbnz	w0, LBB0_22
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	bl	_PN8_STA_CVID
	mov	x22, x0
	ldr	w0, [x19, #16]
	bl	_COUNT_OFF_VST
	cmp	w22, w21
	b.gt	LBB0_4
LBB0_6:
	ldr	w24, [x19, #4]
	cmp	w24, #1
	b.lt	LBB0_11
; %bb.7:
	cmp	w22, #1
	b.lt	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w22, #1
	add	x3, sp, #8
	mov	x0, x23
	mov	w2, #1
	bl	_pn8_write_fidvid
	cbnz	w0, LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #8]
	bl	_PN8_STA_CVID
	mov	x22, x0
	ldr	w0, [x19, #16]
	bl	_COUNT_OFF_VST
	cmp	w24, #2
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	w24, w24, #1
	cmp	w22, #0
	b.gt	LBB0_8
LBB0_11:
	mov	x24, x20
	cmp	w23, w20
	b.eq	LBB0_25
; %bb.12:
	mov	x0, x20
	bl	_FID_TO_VCO_FID
	mov	x24, x0
	mov	x0, x23
	bl	_FID_TO_VCO_FID
	subs	w8, w24, w0
	cneg	w8, w8, mi
	cmp	w8, #3
	b.lo	LBB0_21
; %bb.13:
	mov	w25, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	tst	w0, #0x1
	cinc	w26, w25, eq
	cmp	w23, w20
	b.ge	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w23, #8
	b.lt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w0, w26, w23
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	w0, w23, w26
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	bl	_FID_TO_VCO_FID
	add	w0, w0, w26
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #32]
	mul	x2, x9, x8
	add	x3, sp, #8
	mov	x1, x22
	bl	_pn8_write_fidvid
	cbnz	w0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [sp, #8]
	bl	_PN8_STA_CFID
	mov	x23, x0
	ldr	w0, [x19, #20]
	bl	_COUNT_OFF_IRT
	mov	x0, x23
	bl	_FID_TO_VCO_FID
	subs	w8, w24, w0
	cneg	w8, w8, mi
	cmp	w8, #2
	b.hi	LBB0_14
LBB0_21:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #32]
	mul	x2, x9, x8
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_pn8_write_fidvid
	cbz	w0, LBB0_24
LBB0_22:
Lloh0:
	adrp	x8, _PENDING_STUCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PENDING_STUCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	b	LBB0_29
LBB0_23:
	mov	w0, #0
	b	LBB0_29
LBB0_24:
	ldr	x0, [sp, #8]
	bl	_PN8_STA_CFID
	mov	x24, x0
	ldr	w0, [x19, #20]
	bl	_COUNT_OFF_IRT
LBB0_25:
	cmp	w22, w21
	b.ne	LBB0_27
; %bb.26:
	mov	w22, #0
	mov	x23, x21
	b	LBB0_28
LBB0_27:
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x21
	mov	w2, #1
	bl	_pn8_write_fidvid
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_PN8_STA_CVID
	mov	x23, x0
	ldr	w0, [x19, #16]
	bl	_COUNT_OFF_VST
LBB0_28:
	cmp	w23, w21
	ccmp	w24, w20, #0, eq
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	csel	w0, w22, w8, eq
LBB0_29:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PENDING_STUCK,4,2              ; @PENDING_STUCK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_pn8_setfidvid
.subsections_via_symbols
