	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function al3320a_init
_al3320a_init:                          ## @al3320a_init
	.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	(%rdi), %edi
	movq	_AL3320A_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AL3320A_CONFIG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	movq	_AL3320A_REG_CONFIG_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AL3320A_RANGE_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AL3320A_GAIN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	movq	_AL3320A_REG_MEAN_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AL3320A_DEFAULT_MEAN_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movq	_AL3320A_REG_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AL3320A_DEFAULT_WAIT_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AL3320A_REG_CONFIG,4,2         ## @AL3320A_REG_CONFIG
	.comm	_AL3320A_CONFIG_ENABLE,4,2      ## @AL3320A_CONFIG_ENABLE
	.comm	_AL3320A_REG_CONFIG_RANGE,4,2   ## @AL3320A_REG_CONFIG_RANGE
	.comm	_AL3320A_RANGE_3,4,2            ## @AL3320A_RANGE_3
	.comm	_AL3320A_GAIN_SHIFT,4,2         ## @AL3320A_GAIN_SHIFT
	.comm	_AL3320A_REG_MEAN_TIME,4,2      ## @AL3320A_REG_MEAN_TIME
	.comm	_AL3320A_DEFAULT_MEAN_TIME,4,2  ## @AL3320A_DEFAULT_MEAN_TIME
	.comm	_AL3320A_REG_WAIT,4,2           ## @AL3320A_REG_WAIT
	.comm	_AL3320A_DEFAULT_WAIT_TIME,4,2  ## @AL3320A_DEFAULT_WAIT_TIME
	.no_dead_strip	_al3320a_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function al3320a_init
_al3320a_init:                          ; @al3320a_init
	.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
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _AL3320A_REG_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AL3320A_REG_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AL3320A_CONFIG_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AL3320A_CONFIG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _AL3320A_REG_CONFIG_RANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AL3320A_REG_CONFIG_RANGE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _AL3320A_RANGE_3@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AL3320A_RANGE_3@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _AL3320A_GAIN_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AL3320A_GAIN_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _AL3320A_REG_MEAN_TIME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AL3320A_REG_MEAN_TIME@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _AL3320A_DEFAULT_MEAN_TIME@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AL3320A_DEFAULT_MEAN_TIME@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh21:
	adrp	x8, _AL3320A_REG_WAIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AL3320A_REG_WAIT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _AL3320A_DEFAULT_WAIT_TIME@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AL3320A_DEFAULT_WAIT_TIME@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	bl	_i2c_smbus_write_byte_data
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AL3320A_REG_CONFIG,4,2         ; @AL3320A_REG_CONFIG
	.comm	_AL3320A_CONFIG_ENABLE,4,2      ; @AL3320A_CONFIG_ENABLE
	.comm	_AL3320A_REG_CONFIG_RANGE,4,2   ; @AL3320A_REG_CONFIG_RANGE
	.comm	_AL3320A_RANGE_3,4,2            ; @AL3320A_RANGE_3
	.comm	_AL3320A_GAIN_SHIFT,4,2         ; @AL3320A_GAIN_SHIFT
	.comm	_AL3320A_REG_MEAN_TIME,4,2      ; @AL3320A_REG_MEAN_TIME
	.comm	_AL3320A_DEFAULT_MEAN_TIME,4,2  ; @AL3320A_DEFAULT_MEAN_TIME
	.comm	_AL3320A_REG_WAIT,4,2           ; @AL3320A_REG_WAIT
	.comm	_AL3320A_DEFAULT_WAIT_TIME,4,2  ; @AL3320A_DEFAULT_WAIT_TIME
	.no_dead_strip	_al3320a_init
.subsections_via_symbols
