	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_slope_register
_set_slope_register:                    ## @set_slope_register
	.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, %r14
	movl	4(%rcx), %eax
	movl	8(%rcx), %ecx
	subl	%eax, %ecx
	leal	(%rcx,%rcx), %ebx
	movl	$4, %edi
	cmpl	%edx, %ebx
	jge	LBB0_4
## %bb.1:
	leal	(,%rcx,4), %ebx
	movl	$3, %edi
	cmpl	%edx, %ebx
	jge	LBB0_4
## %bb.2:
	leal	(,%rcx,8), %ebx
	movl	$2, %edi
	cmpl	%edx, %ebx
	jge	LBB0_4
## %bb.3:
	shll	$4, %ecx
	xorl	%edi, %edi
	cmpl	%edx, %ecx
	setge	%dil
LBB0_4:
	andl	$124, %eax
	leal	(%rdi,%rax,2), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Register write error, aborting.\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_set_slope_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_slope_register
_set_slope_register:                    ; @set_slope_register
	.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
	ldp	w9, w8, [x3, #4]
	sub	w8, w8, w9
	mov	w10, #4
	mov	w11, #3
	mov	w12, #2
	cmp	w2, w8, lsl #4
	cset	w13, le
	cmp	w2, w8, lsl #3
	csel	w12, w12, w13, le
	cmp	w2, w8, lsl #2
	csel	w11, w11, w12, le
	cmp	w2, w8, lsl #1
	csel	w2, w10, w11, le
	lsr	w8, w9, #2
	bfi	w2, w8, #3, #5
	bl	_i2c_smbus_write_byte_data
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Register write error, aborting.\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_set_slope_register
.subsections_via_symbols
