	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opt3001_set_int_time
_opt3001_set_int_time:                  ## @opt3001_set_int_time
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movq	_OPT3001_CONFIGURATION@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$129, %r15d
	je	LBB0_5
## %bb.3:
	cmpl	$128, %r15d
	jne	LBB0_7
## %bb.4:
	movq	_OPT3001_CONFIGURATION_CT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_6
LBB0_1:
	movl	8(%r14), %edi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
LBB0_5:
	movq	_OPT3001_CONFIGURATION_CT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %ebx
LBB0_6:
	movl	%r15d, (%r14)
	movl	4(%r14), %edi
	movl	(%r12), %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_word_swapped   ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPT3001_CONFIGURATION,4,2      ## @OPT3001_CONFIGURATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read register %02x\n"

	.comm	_OPT3001_CONFIGURATION_CT,4,2   ## @OPT3001_CONFIGURATION_CT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_opt3001_set_int_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opt3001_set_int_time
_opt3001_set_int_time:                  ; @opt3001_set_int_time
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x22, _OPT3001_CONFIGURATION@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OPT3001_CONFIGURATION@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_i2c_smbus_read_word_swapped
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w20, #128
	b.ne	LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, _OPT3001_CONFIGURATION_CT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OPT3001_CONFIGURATION_CT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w2, w21, w8
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #8]
	ldr	w2, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _OPT3001_CONFIGURATION_CT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OPT3001_CONFIGURATION_CT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w2, w8, w21
LBB0_6:
	str	w20, [x19]
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
	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	_i2c_smbus_write_word_swapped
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OPT3001_CONFIGURATION,4,2      ; @OPT3001_CONFIGURATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read register %02x\n"

	.comm	_OPT3001_CONFIGURATION_CT,4,2   ; @OPT3001_CONFIGURATION_CT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_opt3001_set_int_time
.subsections_via_symbols
