	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initialize_sensor
_initialize_sensor:                     ## @initialize_sensor
	.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
	movl	%edi, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ADC_DATA_START_ADDR@GOTPCREL(%rip), %rcx
	movq	_channel_index@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movslq	%ebx, %rsi
	addq	%rsi, %rdx
	addq	%rdx, %rdx
	addq	(%rcx), %rdx
	movq	%rdx, 8(%rax)
	cmpl	$3, %esi
	jne	LBB0_3
## %bb.2:
	movl	$1, (%rax)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ADC_DATA_START_ADDR,8,3        ## @ADC_DATA_START_ADDR
	.comm	_channel_index,4,2              ## @channel_index
	.no_dead_strip	_initialize_sensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initialize_sensor
_initialize_sensor:                     ; @initialize_sensor
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ADC_DATA_START_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADC_DATA_START_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _channel_index@GOTPAGE
Lloh7:
	ldr	x9, [x9, _channel_index@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w9, w9, w19
	lsl	w9, w9, #1
	add	x8, x8, w9, sxtw
	str	x8, [x0, #8]
	cmp	w19, #3
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x0]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ADC_DATA_START_ADDR,8,3        ; @ADC_DATA_START_ADDR
	.comm	_channel_index,4,2              ; @channel_index
	.no_dead_strip	_initialize_sensor
.subsections_via_symbols
