	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_update_cts_n
_adv7511_update_cts_n:                  ## @adv7511_update_cts_n
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movl	4(%rdi), %esi
	movl	8(%rdi), %edi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	callq	_adv7511_calc_cts_n
	movl	(%rbx), %edi
	movq	_ADV7511_REG_N0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	-10(%rbp), %edx
	andl	$15, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_ADV7511_REG_N1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-11(%rbp), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_ADV7511_REG_N2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-12(%rbp), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_ADV7511_REG_CTS_MANUAL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	-14(%rbp), %edx
	andl	$15, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_ADV7511_REG_CTS_MANUAL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-15(%rbp), %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_ADV7511_REG_CTS_MANUAL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-16(%rbp), %edx
	callq	_regmap_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7511_REG_N0,4,2             ## @ADV7511_REG_N0
	.comm	_ADV7511_REG_N1,4,2             ## @ADV7511_REG_N1
	.comm	_ADV7511_REG_N2,4,2             ## @ADV7511_REG_N2
	.comm	_ADV7511_REG_CTS_MANUAL0,4,2    ## @ADV7511_REG_CTS_MANUAL0
	.comm	_ADV7511_REG_CTS_MANUAL1,4,2    ## @ADV7511_REG_CTS_MANUAL1
	.comm	_ADV7511_REG_CTS_MANUAL2,4,2    ## @ADV7511_REG_CTS_MANUAL2
	.no_dead_strip	_adv7511_update_cts_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7511_update_cts_n
_adv7511_update_cts_n:                  ; @adv7511_update_cts_n
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	w0, [x0, #8]
	ldr	w1, [x19, #4]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_adv7511_calc_cts_n
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _ADV7511_REG_N0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV7511_REG_N0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldrh	w8, [sp, #10]
	and	w2, w8, #0xf
	bl	_regmap_write
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _ADV7511_REG_N1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADV7511_REG_N1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldrb	w2, [sp, #9]
	bl	_regmap_write
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _ADV7511_REG_N2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADV7511_REG_N2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldrb	w2, [sp, #8]
	bl	_regmap_write
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _ADV7511_REG_CTS_MANUAL0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADV7511_REG_CTS_MANUAL0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldrh	w8, [sp, #14]
	and	w2, w8, #0xf
	bl	_regmap_write
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _ADV7511_REG_CTS_MANUAL1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADV7511_REG_CTS_MANUAL1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldrb	w2, [sp, #13]
	bl	_regmap_write
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _ADV7511_REG_CTS_MANUAL2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADV7511_REG_CTS_MANUAL2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldrb	w2, [sp, #12]
	bl	_regmap_write
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_ADV7511_REG_N0,4,2             ; @ADV7511_REG_N0
	.comm	_ADV7511_REG_N1,4,2             ; @ADV7511_REG_N1
	.comm	_ADV7511_REG_N2,4,2             ; @ADV7511_REG_N2
	.comm	_ADV7511_REG_CTS_MANUAL0,4,2    ; @ADV7511_REG_CTS_MANUAL0
	.comm	_ADV7511_REG_CTS_MANUAL1,4,2    ; @ADV7511_REG_CTS_MANUAL1
	.comm	_ADV7511_REG_CTS_MANUAL2,4,2    ; @ADV7511_REG_CTS_MANUAL2
	.no_dead_strip	_adv7511_update_cts_n
.subsections_via_symbols
