	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ms_sensors_write_resolution    ## -- Begin function ms_sensors_write_resolution
	.p2align	4, 0x90
_ms_sensors_write_resolution:           ## @ms_sensors_write_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	leaq	-20(%rbp), %rsi
	callq	_ms_sensors_read_config_reg
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-20(%rbp), %eax
	andl	$126, %eax
	movl	%ebx, %ecx
	shll	$7, %ecx
	movzbl	%cl, %ecx
	shrl	%ebx
	andl	$1, %ebx
	orl	%ecx, %ebx
	orl	%eax, %ebx
	movl	%ebx, -20(%rbp)
	movl	(%r14), %edi
	movq	_MS_SENSORS_CONFIG_REG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MS_SENSORS_CONFIG_REG_WRITE,4,2 ## @MS_SENSORS_CONFIG_REG_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ms_sensors_write_resolution    ; -- Begin function ms_sensors_write_resolution
	.p2align	2
_ms_sensors_write_resolution:           ; @ms_sensors_write_resolution
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	add	x1, sp, #12
	bl	_ms_sensors_read_config_reg
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	and	w8, w8, #0x7e
	ubfx	w9, w20, #1, #1
	bfi	w9, w20, #7, #1
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _MS_SENSORS_CONFIG_REG_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MS_SENSORS_CONFIG_REG_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_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
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MS_SENSORS_CONFIG_REG_WRITE,4,2 ; @MS_SENSORS_CONFIG_REG_WRITE
.subsections_via_symbols
