	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bh1750_change_int_time
_bh1750_change_int_time:                ## @bh1750_change_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	8(%rdi), %rbx
	cltd
	idivl	(%rbx)
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	cmpl	4(%rbx), %eax
	jl	LBB0_1
## %bb.3:
	cmpl	8(%rbx), %r14d
	jle	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	movq	_BH1750_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movl	12(%rbx), %esi
	andl	%r14d, %esi
	sarl	$5, %esi
	movl	4(%r15), %edi
	movq	_BH1750_CHANGE_INT_TIME_H_BIT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	16(%rbx), %esi
	andl	%r14d, %esi
	movl	4(%r15), %edi
	movq	_BH1750_CHANGE_INT_TIME_L_BIT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	%r14d, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BH1750_POWER_DOWN,4,2          ## @BH1750_POWER_DOWN
	.comm	_BH1750_CHANGE_INT_TIME_H_BIT,4,2 ## @BH1750_CHANGE_INT_TIME_H_BIT
	.comm	_BH1750_CHANGE_INT_TIME_L_BIT,4,2 ## @BH1750_CHANGE_INT_TIME_L_BIT
	.no_dead_strip	_bh1750_change_int_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bh1750_change_int_time
_bh1750_change_int_time:                ; @bh1750_change_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
	ldr	x21, [x0, #8]
	ldr	w8, [x21]
	sdiv	w20, w1, w8
	msub	w8, w20, w8, w1
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x21, #4]
	cmp	w20, w8
	b.lt	LBB0_3
; %bb.2:
	ldr	w8, [x21, #8]
	cmp	w20, w8
	b.le	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
LBB0_5:
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh3:
	adrp	x8, _BH1750_POWER_DOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BH1750_POWER_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte
	tbnz	w0, #31, LBB0_4
; %bb.6:
	ldr	w8, [x21, #12]
	and	w8, w8, w20
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x9, _BH1750_CHANGE_INT_TIME_H_BIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BH1750_CHANGE_INT_TIME_H_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8, asr #5
	bl	_i2c_smbus_write_byte
	tbnz	w0, #31, LBB0_4
; %bb.7:
	ldr	w8, [x21, #16]
	and	w8, w8, w20
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x9, _BH1750_CHANGE_INT_TIME_L_BIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BH1750_CHANGE_INT_TIME_L_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_smbus_write_byte
	tbnz	w0, #31, LBB0_4
; %bb.8:
	mov	w0, #0
	str	w20, [x19]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BH1750_POWER_DOWN,4,2          ; @BH1750_POWER_DOWN
	.comm	_BH1750_CHANGE_INT_TIME_H_BIT,4,2 ; @BH1750_CHANGE_INT_TIME_H_BIT
	.comm	_BH1750_CHANGE_INT_TIME_L_BIT,4,2 ; @BH1750_CHANGE_INT_TIME_L_BIT
	.no_dead_strip	_bh1750_change_int_time
.subsections_via_symbols
