	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function us5182d_init
_us5182d_init:                          ## @us5182d_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_us5182d_reset
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	$0, 32(%r14)
	movq	_US5182D_CONTINUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_US5182D_REG_PXL_TH_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_US5182D_REG_PXH_TH_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_us5182d_regvals@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %edi
	movq	(%r15), %rax
	movl	(%rax,%rbx,8), %edx
	movl	4(%rax,%rbx,8), %esi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r14)
	cmpl	$0, 12(%r14)
	jne	LBB0_8
## %bb.6:
	movq	_US5182D_CFG0_SHUTDOWN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_us5182d_shutdown_en
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	_US5182D_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_US5182D_CONTINUOUS,4,2         ## @US5182D_CONTINUOUS
	.comm	_US5182D_REG_PXL_TH_DEFAULT,4,2 ## @US5182D_REG_PXL_TH_DEFAULT
	.comm	_US5182D_REG_PXH_TH_DEFAULT,4,2 ## @US5182D_REG_PXH_TH_DEFAULT
	.comm	_us5182d_regvals,8,3            ## @us5182d_regvals
	.comm	_US5182D_CFG0_SHUTDOWN_EN,4,2   ## @US5182D_CFG0_SHUTDOWN_EN
	.comm	_US5182D_ONESHOT,4,2            ## @US5182D_ONESHOT
	.no_dead_strip	_us5182d_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function us5182d_init
_us5182d_init:                          ; @us5182d_init
	.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, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x20
	bl	_us5182d_reset
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
	str	xzr, [x19, #32]
Lloh0:
	adrp	x8, _US5182D_CONTINUOUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _US5182D_CONTINUOUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh3:
	adrp	x8, _US5182D_REG_PXL_TH_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _US5182D_REG_PXL_TH_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _US5182D_REG_PXH_TH_DEFAULT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _US5182D_REG_PXH_TH_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
Lloh9:
	adrp	x21, _us5182d_regvals@GOTPAGE
Lloh10:
	ldr	x21, [x21, _us5182d_regvals@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x21]
	add	x8, x8, x22
	ldp	w2, w1, [x8]
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	add	x22, x22, #8
	cmp	x23, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
	movi.2s	v0, #1
	str	d0, [x19]
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_8
; %bb.6:
Lloh11:
	adrp	x8, _US5182D_CFG0_SHUTDOWN_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _US5182D_CFG0_SHUTDOWN_EN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_us5182d_shutdown_en
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _US5182D_ONESHOT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _US5182D_ONESHOT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_8:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_US5182D_CONTINUOUS,4,2         ; @US5182D_CONTINUOUS
	.comm	_US5182D_REG_PXL_TH_DEFAULT,4,2 ; @US5182D_REG_PXL_TH_DEFAULT
	.comm	_US5182D_REG_PXH_TH_DEFAULT,4,2 ; @US5182D_REG_PXH_TH_DEFAULT
	.comm	_us5182d_regvals,8,3            ; @us5182d_regvals
	.comm	_US5182D_CFG0_SHUTDOWN_EN,4,2   ; @US5182D_CFG0_SHUTDOWN_EN
	.comm	_US5182D_ONESHOT,4,2            ; @US5182D_ONESHOT
	.no_dead_strip	_us5182d_init
.subsections_via_symbols
