	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_sensitivity_write
_il4965_sensitivity_write:              ## @il4965_sensitivity_write
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$16, -64(%rbp)
	leaq	-40(%rbp), %rdi
	movq	%rdi, -56(%rbp)
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_C_SENSITIVITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	8(%rbx), %r15
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_il4965_prepare_legacy_sensitivity_tbl
	movq	_C_SENSITIVITY_CONTROL_WORK_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	-40(%rbp), %rdi
	movq	(%rbx), %rsi
	movq	_HD_TBL_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	shll	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	movq	-40(%rbp), %rsi
	movl	(%r15), %edx
	shll	$2, %edx
	callq	_memcpy
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_il_send_cmd
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_D_CALIB
LBB0_3:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.comm	_C_SENSITIVITY,4,2              ## @C_SENSITIVITY
	.comm	_C_SENSITIVITY_CONTROL_WORK_TBL,4,2 ## @C_SENSITIVITY_CONTROL_WORK_TBL
	.comm	_HD_TBL_SIZE,4,2                ## @HD_TBL_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No change in C_SENSITIVITY\n"

	.no_dead_strip	_il4965_sensitivity_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_sensitivity_write
_il4965_sensitivity_write:              ; @il4965_sensitivity_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #16
	str	w8, [sp, #8]
	add	x8, sp, #32
	str	x8, [sp, #16]
Lloh0:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _C_SENSITIVITY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _C_SENSITIVITY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
	add	x20, x0, #8
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x2, [sp, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_il4965_prepare_legacy_sensitivity_tbl
Lloh6:
	adrp	x8, _C_SENSITIVITY_CONTROL_WORK_TBL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _C_SENSITIVITY_CONTROL_WORK_TBL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldr	x0, [sp, #32]
	ldr	x1, [x19]
Lloh9:
	adrp	x20, _HD_TBL_SIZE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _HD_TBL_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	bl	_memcmp
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	ldr	x1, [sp, #32]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	bl	_memcpy
	add	x1, sp, #8
	mov	x0, x19
	bl	_il_send_cmd
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_CALIB
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.comm	_C_SENSITIVITY,4,2              ; @C_SENSITIVITY
	.comm	_C_SENSITIVITY_CONTROL_WORK_TBL,4,2 ; @C_SENSITIVITY_CONTROL_WORK_TBL
	.comm	_HD_TBL_SIZE,4,2                ; @HD_TBL_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No change in C_SENSITIVITY\n"

	.no_dead_strip	_il4965_sensitivity_write
.subsections_via_symbols
