	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2563_adjust_gainlevel
_tsl2563_adjust_gainlevel:              ## @tsl2563_adjust_gainlevel
	.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
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdi
	movl	$1, %edx
	cmpq	%rsi, (%rcx)
	jl	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	movq	$-1, %rdx
	cmpq	%rsi, 8(%rcx)
	jle	LBB0_3
LBB0_2:
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%rcx,%rax,8), %rdx
	movq	%rdx, (%rbx)
	movq	_TSL2563_CMD@GOTPCREL(%rip), %rdx
	movq	_TSL2563_REG_TIMING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movl	16(%rcx,%rax,8), %edx
	callq	_i2c_smbus_write_byte_data
	movq	%rbx, %rdi
	callq	_tsl2563_wait_adc
	movq	%rbx, %rdi
	callq	_tsl2563_wait_adc
	movl	$1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSL2563_CMD,4,2                ## @TSL2563_CMD
	.comm	_TSL2563_REG_TIMING,4,2         ## @TSL2563_REG_TIMING
	.no_dead_strip	_tsl2563_adjust_gainlevel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2563_adjust_gainlevel
_tsl2563_adjust_gainlevel:              ; @tsl2563_adjust_gainlevel
	.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	x0, [x0, #8]
	ldr	x8, [x19]
	ldr	x9, [x8]
	cmp	x9, x1
	b.ge	LBB0_2
; %bb.1:
	mov	w9, #1
	b	LBB0_4
LBB0_2:
	ldr	x9, [x8, #8]
	cmp	x9, x1
	b.le	LBB0_5
; %bb.3:
	mov	x9, #-1
LBB0_4:
	mov	w10, #24
	madd	x8, x9, x10, x8
	str	x8, [x19]
Lloh0:
	adrp	x9, _TSL2563_CMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TSL2563_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _TSL2563_REG_TIMING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TSL2563_REG_TIMING@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w1, w10, w9
	ldr	w2, [x8, #16]
	bl	_i2c_smbus_write_byte_data
	mov	x0, x19
	bl	_tsl2563_wait_adc
	mov	x0, x19
	bl	_tsl2563_wait_adc
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_TSL2563_CMD,4,2                ; @TSL2563_CMD
	.comm	_TSL2563_REG_TIMING,4,2         ; @TSL2563_REG_TIMING
	.no_dead_strip	_tsl2563_adjust_gainlevel
.subsections_via_symbols
