	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max44009_write_int_time
_max44009_write_int_time:               ## @max44009_write_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
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movq	(%rdi), %r15
	leal	(%rsi,%rdx), %r14d
	movq	_max44009_int_time_ns_array@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_find_closest_descending
	movl	%eax, %r14d
	movq	_MAX44009_REG_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	andl	%r14d, %eax
	movq	_MAX44009_CFG_MAN_MODE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.comm	_max44009_int_time_ns_array,4,2 ## @max44009_int_time_ns_array
	.comm	_MAX44009_REG_CFG,4,2           ## @MAX44009_REG_CFG
	.comm	_MAX44009_CFG_MAN_MODE_MASK,4,2 ## @MAX44009_CFG_MAN_MODE_MASK
	.no_dead_strip	_max44009_write_int_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max44009_write_int_time
_max44009_write_int_time:               ; @max44009_write_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
Lloh0:
	adrp	x8, _NSEC_PER_SEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NSEC_PER_SEC@GOTPAGEOFF]
	ldr	x19, [x0]
Lloh2:
	ldr	w8, [x8]
	madd	w20, w8, w1, w2
Lloh3:
	adrp	x8, _max44009_int_time_ns_array@GOTPAGE
Lloh4:
	ldr	x8, [x8, _max44009_int_time_ns_array@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_find_closest_descending
	mov	x20, x0
Lloh6:
	adrp	x21, _MAX44009_REG_CFG@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MAX44009_REG_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_2
; %bb.1:
	and	w8, w0, w20
Lloh8:
	adrp	x9, _MAX44009_CFG_MAN_MODE_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAX44009_CFG_MAN_MODE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w1, [x21]
	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	_i2c_smbus_write_byte_data
LBB0_2:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.comm	_max44009_int_time_ns_array,4,2 ; @max44009_int_time_ns_array
	.comm	_MAX44009_REG_CFG,4,2           ; @MAX44009_REG_CFG
	.comm	_MAX44009_CFG_MAN_MODE_MASK,4,2 ; @MAX44009_CFG_MAN_MODE_MASK
	.no_dead_strip	_max44009_write_int_time
.subsections_via_symbols
