	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ks0127_configure
LCPI0_0:
	.long	640                             ## 0x280
	.long	480                             ## 0x1e0
	.long	64                              ## 0x40
	.long	48                              ## 0x30
LCPI0_1:
	.long	32768                           ## 0x8000
	.long	32768                           ## 0x8000
	.long	32768                           ## 0x8000
	.long	32768                           ## 0x8000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ks0127_configure:                      ## @ks0127_configure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorl	%esi, %esi
	callq	_i2c_r
	leaq	L_.str(%rip), %rbx
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	testb	$8, %al
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.3(%rip), %rbx
	jmp	LBB0_10
LBB0_3:
	movq	%r14, %rdi
	movl	$61, %esi
	callq	_i2c_r
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	andl	$15, %eax
	je	LBB0_5
## %bb.6:
	cmpl	$9, %eax
	jne	LBB0_9
## %bb.7:
	movq	_SEN_KS0127B@GOTPCREL(%rip), %rbx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_5:
	movq	_SEN_KS0127@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	40(%r14), %rdi
	callq	_dev_info
	movl	(%rbx), %eax
	movl	%eax, 32(%r14)
LBB0_9:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [640,480,64,48]
	movups	%xmm0, (%r14)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [32768,32768,32768,32768]
	movups	%xmm0, 16(%r14)
	leaq	L_.str.4(%rip), %rbx
LBB0_10:
	movq	%rbx, %rdi
	callq	_err
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error detecting sensor type"

L_.str.1:                               ## @.str.1
	.asciz	"Sensor is a KS0127\n"

	.comm	_SEN_KS0127,4,2                 ## @SEN_KS0127
L_.str.2:                               ## @.str.2
	.asciz	"Sensor is a KS0127B Rev. A\n"

	.comm	_SEN_KS0127B,4,2                ## @SEN_KS0127B
L_.str.3:                               ## @.str.3
	.asciz	"Error: Sensor is an unsupported KS0122"

L_.str.4:                               ## @.str.4
	.asciz	"This sensor is not supported yet."

	.no_dead_strip	_ks0127_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ks0127_configure
lCPI0_0:
	.long	640                             ; 0x280
	.long	480                             ; 0x1e0
	.long	64                              ; 0x40
	.long	48                              ; 0x30
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ks0127_configure:                      ; @ks0127_configure
	.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
	mov	w1, #0
	bl	_i2c_r
	tbnz	w0, #31, LBB0_7
; %bb.1:
	tbnz	w0, #3, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str.3@PAGE
Lloh1:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_3:
	mov	x0, x19
	mov	w1, #61
	bl	_i2c_r
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ands	w8, w0, #0xf
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #9
	b.ne	LBB0_10
; %bb.6:
Lloh2:
	adrp	x20, _SEN_KS0127B@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SEN_KS0127B@GOTPAGEOFF]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh8:
	adrp	x20, _SEN_KS0127@GOTPAGE
Lloh9:
	ldr	x20, [x20, _SEN_KS0127@GOTPAGEOFF]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	ldr	x0, [x19, #40]
	bl	_dev_info
	ldr	w8, [x20]
	str	w8, [x19, #32]
LBB0_10:
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	movi.4s	v1, #128, lsl #8
	stp	q0, q1, [x19]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_11:
	bl	_err
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error detecting sensor type"

l_.str.1:                               ; @.str.1
	.asciz	"Sensor is a KS0127\n"

	.comm	_SEN_KS0127,4,2                 ; @SEN_KS0127
l_.str.2:                               ; @.str.2
	.asciz	"Sensor is a KS0127B Rev. A\n"

	.comm	_SEN_KS0127B,4,2                ; @SEN_KS0127B
l_.str.3:                               ; @.str.3
	.asciz	"Error: Sensor is an unsupported KS0122"

l_.str.4:                               ; @.str.4
	.asciz	"This sensor is not supported yet."

	.no_dead_strip	_ks0127_configure
.subsections_via_symbols
