	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encoder_control_digx_v3
_encoder_control_digx_v3:               ## @encoder_control_digx_v3
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_BP_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorps	%xmm0, %xmm0
	movups	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movq	_LANE_COUNT_FOUR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rax
	setl	%cl
	movl	%ecx, -48(%rbp)
	movq	24(%rsi), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	movl	20(%rsi), %edi
	callq	*8(%rax)
	movl	%eax, -52(%rbp)
	movslq	8(%rbx), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movl	%eax, -56(%rbp)
	movq	(%r15), %rax
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	callq	*(%rax)
	movq	%rax, -64(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -72(%rbp)
	movq	_DIGxEncoderControl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	-40(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_EXEC_BIOS_CMD_TABLE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ## @BP_RESULT_FAILURE
	.comm	_LANE_COUNT_FOUR,8,3            ## @LANE_COUNT_FOUR
	.comm	_DIGxEncoderControl,4,2         ## @DIGxEncoderControl
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_encoder_control_digx_v3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encoder_control_digx_v3
_encoder_control_digx_v3:               ; @encoder_control_digx_v3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _LANE_COUNT_FOUR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LANE_COUNT_FOUR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x1]
	cmp	x8, x9
	cset	w24, lt
	ldr	x25, [x1, #24]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	w0, [x1, #20]
	blr	x8
	mov	x21, x0
	ldrsw	x8, [x19, #8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #2
	bl	_cpu_to_le16
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldp	w1, w0, [x19, #12]
	blr	x8
	ldr	x9, [x19]
Lloh6:
	adrp	x8, _DIGxEncoderControl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIGxEncoderControl@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	x9, x0, [sp]
	stp	w22, w21, [sp, #16]
	stp	w24, wzr, [sp, #24]
	stp	x25, xzr, [sp, #32]
	mov	x1, sp
	mov	x0, x8
	bl	_EXEC_BIOS_CMD_TABLE
Lloh9:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w23, w8, eq
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ; @BP_RESULT_FAILURE
	.comm	_LANE_COUNT_FOUR,8,3            ; @LANE_COUNT_FOUR
	.comm	_DIGxEncoderControl,4,2         ; @DIGxEncoderControl
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_encoder_control_digx_v3
.subsections_via_symbols
