	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt819_s_ctrl
_bt819_s_ctrl:                          ## @bt819_s_ctrl
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_sd
	movq	%rax, %rdi
	callq	_to_bt819
	movq	%rax, %r14
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	4(%rbx), %eax
	shrl	$7, %eax
	movzbl	%al, %edx
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_bt819_write
	movl	4(%rbx), %ecx
	shrl	$15, %ecx
	andl	$1, %ecx
	movq	%r14, %rdi
	movl	$11, %esi
	movl	$1, %edx
	callq	_bt819_setbit
	imull	$180, 4(%rbx), %eax
	movslq	%eax, %rbx
	imulq	$-2130574327, %rbx, %rax        ## imm = 0x81020409
	shrq	$32, %rax
	addl	%eax, %ebx
	movl	%ebx, %eax
	shrl	$31, %eax
	sarl	$7, %ebx
	addl	%eax, %ebx
	movl	%ebx, %eax
	shrl	$7, %eax
	movzbl	%al, %edx
	movq	%r14, %rdi
	movl	$14, %esi
	callq	_bt819_write
	shrl	$15, %ebx
	andl	$1, %ebx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	$11, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_bt819_setbit
	jmp	LBB0_9
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_4:
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$15, %esi
	jmp	LBB0_7
LBB0_5:
	movzbl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_bt819_write
	movl	4(%rbx), %ecx
	shrl	$8, %ecx
	andl	$1, %ecx
	movq	%r14, %rdi
	movl	$11, %esi
	movl	$2, %edx
	callq	_bt819_setbit
	jmp	LBB0_8
LBB0_6:
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$10, %esi
LBB0_7:
	callq	_bt819_write
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bt819_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt819_s_ctrl
_bt819_s_ctrl:                          ; @bt819_s_ctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_to_sd
	bl	_to_bt819
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20, #4]
	ubfx	w2, w8, #7, #8
	mov	x0, x19
	mov	w1, #13
	bl	_bt819_write
	ldr	w8, [x20, #4]
	ubfx	w3, w8, #15, #1
	mov	x0, x19
	mov	w1, #11
	mov	w2, #1
	bl	_bt819_setbit
	ldr	w8, [x20, #4]
	mov	w9, #180
	mul	w8, w8, w9
	mov	w9, #1033
	movk	w9, #33026, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #7
	add	w20, w9, w8, lsr #31
	ubfx	w2, w20, #7, #8
	mov	x0, x19
	mov	w1, #14
	bl	_bt819_write
	ubfx	w3, w20, #15, #1
	mov	x0, x19
	mov	w1, #11
	mov	w2, #0
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #15
	b	LBB0_8
LBB0_5:
	ldrb	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #12
	bl	_bt819_write
	ldr	w8, [x20, #4]
	ubfx	w3, w8, #8, #1
	mov	x0, x19
	mov	w1, #11
	mov	w2, #2
LBB0_6:
	bl	_bt819_setbit
	b	LBB0_9
LBB0_7:
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #10
LBB0_8:
	bl	_bt819_write
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bt819_s_ctrl
.subsections_via_symbols
