	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9910_set_scale
_tw9910_set_scale:                      ## @tw9910_set_scale
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_SCALE_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %eax
	movl	4(%rbx), %edx
	shrl	$4, %eax
	andl	$240, %eax
	shrl	$8, %edx
	andl	$15, %edx
	orl	%eax, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_HSCALE_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_VSCALE_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%rbx), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALE_HI,4,2                   ## @SCALE_HI
	.comm	_HSCALE_LO,4,2                  ## @HSCALE_LO
	.comm	_VSCALE_LO,4,2                  ## @VSCALE_LO
	.no_dead_strip	_tw9910_set_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw9910_set_scale
_tw9910_set_scale:                      ; @tw9910_set_scale
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SCALE_HI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCALE_HI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w8, w9, [x20]
	lsr	w8, w8, #4
	and	w2, w8, #0xf0
	bfxil	w2, w9, #8, #4
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _HSCALE_LO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HSCALE_LO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldrb	w2, [x20, #4]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _VSCALE_LO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VSCALE_LO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldrb	w2, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_smbus_write_byte_data
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALE_HI,4,2                   ; @SCALE_HI
	.comm	_HSCALE_LO,4,2                  ; @HSCALE_LO
	.comm	_VSCALE_LO,4,2                  ; @VSCALE_LO
	.no_dead_strip	_tw9910_set_scale
.subsections_via_symbols
