	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smrt_set
_smrt_set:                              ## @smrt_set
	.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, %rbx
	movl	(%rdi), %ecx
	movl	$-2, %edx
	shll	%cl, %edx
	movl	4(%rdi), %edi
	imull	%esi, %edx
	addl	%edi, %edx
	shll	$13, %edx
	movl	%edi, %eax
	shrl	$31, %eax
	addl	%edi, %eax
	sarl	%eax
	addl	%edx, %eax
	cltd
	idivl	%edi
	movl	%eax, %r14d
	movq	_MB86A16_SRATE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %ecx
	movl	8(%rbx), %eax
	addl	%eax, %eax
	orl	%ecx, %eax
	orl	12(%rbx), %eax
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_mb86a16_write
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	_MB86A16_SRATE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r14b, %edx
	movq	%rbx, %rdi
	callq	_mb86a16_write
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	shrl	$8, %r14d
	andb	$15, %r14b
	movq	_MB86A16_SRATE3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r14b, %edx
	movq	%rbx, %rdi
	callq	_mb86a16_write
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_4
LBB0_3:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB86A16_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movl	$-1, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB86A16_SRATE1,4,2             ## @MB86A16_SRATE1
	.comm	_MB86A16_SRATE2,4,2             ## @MB86A16_SRATE2
	.comm	_MB86A16_SRATE3,4,2             ## @MB86A16_SRATE3
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MB86A16_ERROR,4,2              ## @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C transfer error"

	.no_dead_strip	_smrt_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smrt_set
_smrt_set:                              ; @smrt_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldp	w22, w21, [x0]
	cmp	w21, #0
	cinc	w23, w21, lt
Lloh0:
	adrp	x8, _MB86A16_SRATE1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MB86A16_SRATE1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w8, w9, [x0, #8]
	lsl	w8, w8, #1
	orr	w8, w8, w22, lsl #2
	orr	w8, w8, w9
	and	w2, w8, #0xff
	bl	_mb86a16_write
	tbnz	x0, #63, LBB0_4
; %bb.1:
	mov	w8, #-2
	lsl	w8, w8, w22
	madd	w8, w8, w20, w21
	lsl	w8, w8, #13
	add	w8, w8, w23, asr #1
	sdiv	w20, w8, w21
Lloh3:
	adrp	x8, _MB86A16_SRATE2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB86A16_SRATE2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	and	w2, w20, #0xff
	mov	x0, x19
	bl	_mb86a16_write
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ubfx	w2, w20, #8, #4
Lloh6:
	adrp	x8, _MB86A16_SRATE3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MB86A16_SRATE3@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mb86a16_write
	tbnz	x0, #63, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _verbose@GOTPAGE
Lloh10:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _MB86A16_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MB86A16_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MB86A16_SRATE1,4,2             ; @MB86A16_SRATE1
	.comm	_MB86A16_SRATE2,4,2             ; @MB86A16_SRATE2
	.comm	_MB86A16_SRATE3,4,2             ; @MB86A16_SRATE3
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MB86A16_ERROR,4,2              ; @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C transfer error"

	.no_dead_strip	_smrt_set
.subsections_via_symbols
