	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stts751_adjust_resolution
_stts751_adjust_resolution:             ## @stts751_adjust_resolution
	.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
	movl	(%rdi), %eax
	xorl	%ecx, %ecx
	cmpl	$8, %eax
	setne	%cl
	addl	%ecx, %ecx
	incl	%ecx
	xorl	%ebx, %ebx
	cmpl	$9, %eax
	cmovnel	%ecx, %ebx
	cmpl	%ebx, 4(%rdi)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %r14
	movq	_STTS751_CONF_RES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	8(%rdi), %edx
	movq	_STTS751_CONF_RES_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	shll	%cl, %eax
	orl	%edx, %eax
	movl	%eax, 8(%rdi)
	movq	16(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	movl	%ebx, 4(%r14)
	movq	16(%r14), %rdi
	movq	_STTS751_REG_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STTS751_CONF_RES_MASK,4,2      ## @STTS751_CONF_RES_MASK
	.comm	_STTS751_CONF_RES_SHIFT,4,2     ## @STTS751_CONF_RES_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting res %d. config %x"

	.comm	_STTS751_REG_CONF,4,2           ## @STTS751_REG_CONF
	.no_dead_strip	_stts751_adjust_resolution
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stts751_adjust_resolution
_stts751_adjust_resolution:             ; @stts751_adjust_resolution
	.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
	ldp	w8, w9, [x0]
	cmp	w8, #8
	mov	w10, #3
	csinc	w10, w10, wzr, ne
	cmp	w8, #9
	csel	w20, wzr, w10, eq
	cmp	w9, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x8, _STTS751_CONF_RES_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STTS751_CONF_RES_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
Lloh3:
	adrp	x10, _STTS751_CONF_RES_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _STTS751_CONF_RES_SHIFT@GOTPAGEOFF]
	bic	w8, w9, w8
Lloh5:
	ldr	w9, [x10]
	lsl	w9, w20, w9
	orr	w3, w9, w8
	str	w3, [x0, #8]
	ldr	x0, [x0, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	str	w20, [x19, #4]
Lloh8:
	adrp	x8, _STTS751_REG_CONF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STTS751_REG_CONF@GOTPAGEOFF]
	ldr	x0, [x19, #16]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_smbus_write_byte_data
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STTS751_CONF_RES_MASK,4,2      ; @STTS751_CONF_RES_MASK
	.comm	_STTS751_CONF_RES_SHIFT,4,2     ; @STTS751_CONF_RES_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting res %d. config %x"

	.comm	_STTS751_REG_CONF,4,2           ; @STTS751_REG_CONF
	.no_dead_strip	_stts751_adjust_resolution
.subsections_via_symbols
