	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm93_init_client
_lm93_init_client:                      ## @lm93_init_client
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_LM93_REG_GPI_VID_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_lm93_read_byte
	movq	_vid_agtl@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	$0, (%rcx)
	movl	(%rbx), %esi
	setne	%dl
	leal	(%rdx,%rdx,2), %edx
	orl	%eax, %edx
	movq	%r15, %rdi
	callq	_lm93_write_byte
	movq	_init@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_LM93_REG_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_lm93_read_byte
	movl	(%rbx), %esi
	orl	$8, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_lm93_write_byte
	movq	_LM93_REG_STATUS_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_lm93_read_byte
	movl	(%rbx), %esi
	orl	$2, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_lm93_write_byte
	movq	_LM93_REG_SLEEP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_lm93_write_byte
	movq	_LM93_REG_MISC_ERR_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_lm93_read_byte
	movq	_vccp_limit_type@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$1, (%rcx)
	movl	$0, %edx
	sbbl	%edx, %edx
	orl	$-20, %edx
	andl	%eax, %edx
	cmpq	$1, 8(%rcx)
	sbbl	%r14d, %r14d
	orl	$-36, %r14d
	andl	%edx, %r14d
	andl	$-4, %r14d
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_lm93_write_byte
LBB0_2:
	movq	_LM93_REG_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_lm93_read_byte
	movl	(%r14), %esi
	orl	$1, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_lm93_write_byte
	movl	$20, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_msleep
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_lm93_read_byte
	testb	$-128, %al
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%ebx
	jne	LBB0_4
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM93_REG_GPI_VID_CTL,4,2       ## @LM93_REG_GPI_VID_CTL
	.comm	_vid_agtl,8,3                   ## @vid_agtl
	.comm	_init,8,3                       ## @init
	.comm	_LM93_REG_CONFIG,4,2            ## @LM93_REG_CONFIG
	.comm	_LM93_REG_STATUS_CONTROL,4,2    ## @LM93_REG_STATUS_CONTROL
	.comm	_LM93_REG_SLEEP_CONTROL,4,2     ## @LM93_REG_SLEEP_CONTROL
	.comm	_LM93_REG_MISC_ERR_MASK,4,2     ## @LM93_REG_MISC_ERR_MASK
	.comm	_vccp_limit_type,8,3            ## @vccp_limit_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out waiting for sensor chip to signal ready!\n"

	.no_dead_strip	_lm93_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm93_init_client
_lm93_init_client:                      ; @lm93_init_client
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _LM93_REG_GPI_VID_CTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LM93_REG_GPI_VID_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_lm93_read_byte
Lloh2:
	adrp	x8, _vid_agtl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vid_agtl@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #3
	csel	w8, wzr, w8, eq
	orr	w2, w8, w0
	mov	x0, x19
	bl	_lm93_write_byte
Lloh5:
	adrp	x8, _init@GOTPAGE
Lloh6:
	ldr	x8, [x8, _init@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x20, _LM93_REG_CONFIG@GOTPAGE
Lloh9:
	ldr	x20, [x20, _LM93_REG_CONFIG@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_lm93_read_byte
	ldr	w1, [x20]
	orr	w2, w0, #0x8
	mov	x0, x19
	bl	_lm93_write_byte
Lloh10:
	adrp	x21, _LM93_REG_STATUS_CONTROL@GOTPAGE
Lloh11:
	ldr	x21, [x21, _LM93_REG_STATUS_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_lm93_read_byte
	ldr	w1, [x21]
	orr	w2, w0, #0x2
	mov	x0, x19
	bl	_lm93_write_byte
Lloh12:
	adrp	x8, _LM93_REG_SLEEP_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LM93_REG_SLEEP_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_lm93_write_byte
Lloh15:
	adrp	x21, _LM93_REG_MISC_ERR_MASK@GOTPAGE
Lloh16:
	ldr	x21, [x21, _LM93_REG_MISC_ERR_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_lm93_read_byte
Lloh17:
	adrp	x8, _vccp_limit_type@GOTPAGE
Lloh18:
	ldr	x8, [x8, _vccp_limit_type@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldp	x9, x8, [x8]
	cmp	x9, #0
	mov	w9, #-17
	csinv	w9, w9, wzr, ne
	and	w9, w0, w9
	cmp	x8, #0
	mov	w8, #-33
	csinv	w8, w8, wzr, ne
	and	w8, w9, w8
	and	w2, w8, #0xfffffffc
	ldr	w1, [x21]
	mov	x0, x19
	bl	_lm93_write_byte
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_lm93_read_byte
	ldr	w1, [x20]
	orr	w2, w0, #0x1
	mov	x0, x19
	bl	_lm93_write_byte
	mov	w21, #20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_lm93_read_byte
	tbnz	w0, #7, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w21, w21, #1
	b.ne	LBB0_3
; %bb.5:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_warn
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LM93_REG_GPI_VID_CTL,4,2       ; @LM93_REG_GPI_VID_CTL
	.comm	_vid_agtl,8,3                   ; @vid_agtl
	.comm	_init,8,3                       ; @init
	.comm	_LM93_REG_CONFIG,4,2            ; @LM93_REG_CONFIG
	.comm	_LM93_REG_STATUS_CONTROL,4,2    ; @LM93_REG_STATUS_CONTROL
	.comm	_LM93_REG_SLEEP_CONTROL,4,2     ; @LM93_REG_SLEEP_CONTROL
	.comm	_LM93_REG_MISC_ERR_MASK,4,2     ; @LM93_REG_MISC_ERR_MASK
	.comm	_vccp_limit_type,8,3            ; @vccp_limit_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out waiting for sensor chip to signal ready!\n"

	.no_dead_strip	_lm93_init_client
.subsections_via_symbols
