	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc9154a_set_attenuation
_tc9154a_set_attenuation:               ## @tc9154a_set_attenuation
	.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	%edx, %r15d
	movq	%rdi, %r12
	movslq	%esi, %r13
	imulq	$1717986919, %r13, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$34, %rbx
	addl	%eax, %ebx
	movl	%ebx, %edi
	callq	_TC9154A_ATT_MAJ
	movl	%eax, %r14d
	addl	%ebx, %ebx
	leal	(%rbx,%rbx,4), %eax
	subl	%eax, %r13d
	movl	%r13d, %eax
	shrb	$7, %al
	addb	%r13b, %al
	sarb	%al
	movsbl	%al, %edi
	callq	_TC9154A_ATT_MIN
	orl	%r15d, %r14d
	orl	%eax, %r14d
	xorl	%ebx, %ebx
	movq	_PT_CK@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_tc9154a_set_pins
	movl	$5, %edi
	callq	_udelay
	movl	(%r13), %esi
	orl	%r15d, %esi
	movq	%r12, %rdi
	callq	_tc9154a_set_pins
	movl	$5, %edi
	callq	_udelay
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_tc9154a_set_pins
	incl	%ebx
	cmpl	$18, %ebx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %r14d
	movl	$0, %r15d
	jae	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_3
LBB0_4:
	movl	$5, %edi
	callq	_udelay
	movq	_PT_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_tc9154a_set_pins
	movl	$5, %edi
	callq	_udelay
	movq	%r12, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tc9154a_set_pins               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_DATA,4,2                    ## @PT_DATA
	.comm	_PT_CK,4,2                      ## @PT_CK
	.comm	_PT_ST,4,2                      ## @PT_ST
	.no_dead_strip	_tc9154a_set_attenuation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc9154a_set_attenuation
_tc9154a_set_attenuation:               ; @tc9154a_set_attenuation
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w22, w8, w9
	mov	x0, x22
	bl	_TC9154A_ATT_MAJ
	mov	x23, x0
	mov	w8, #10
	msub	w8, w22, w8, w21
	and	w9, w8, #0x80
	add	w8, w8, w9, lsr #7
	sbfx	w0, w8, #1, #7
	bl	_TC9154A_ATT_MIN
	mov	w21, #0
	orr	w8, w23, w20
	orr	w22, w8, w0
Lloh0:
	adrp	x23, _PT_DATA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PT_DATA@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PT_CK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PT_CK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	lsr	w9, w22, w21
	sbfx	w9, w9, #0, #1
	and	w20, w9, w8
	mov	x0, x19
	mov	x1, x20
	bl	_tc9154a_set_pins
	mov	w0, #5
	bl	_udelay
	ldr	w8, [x24]
	orr	w1, w8, w20
	mov	x0, x19
	bl	_tc9154a_set_pins
	mov	w0, #5
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_tc9154a_set_pins
	add	w21, w21, #1
	cmp	w21, #18
	b.ne	LBB0_1
; %bb.2:
	mov	w0, #5
	bl	_udelay
Lloh4:
	adrp	x8, _PT_ST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PT_ST@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tc9154a_set_pins
	mov	w0, #5
	bl	_udelay
	mov	x0, x19
	mov	w1, #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
	b	_tc9154a_set_pins
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_DATA,4,2                    ; @PT_DATA
	.comm	_PT_CK,4,2                      ; @PT_CK
	.comm	_PT_ST,4,2                      ; @PT_ST
	.no_dead_strip	_tc9154a_set_attenuation
.subsections_via_symbols
