	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm90_write_convrate
_lm90_write_convrate:                   ## @lm90_write_convrate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movq	_LM90_PAUSE_FOR_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_2
## %bb.1:
	movl	%r14d, %esi
	orl	$64, %esi
	movq	%rbx, %rdi
	callq	_lm90_update_confreg
	testl	%eax, %eax
	js	LBB0_3
LBB0_2:
	movl	8(%rbx), %edi
	movq	_LM90_REG_W_CONVRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lm90_update_confreg
	movl	%r15d, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM90_PAUSE_FOR_CONFIG,4,2      ## @LM90_PAUSE_FOR_CONFIG
	.comm	_LM90_REG_W_CONVRATE,4,2        ## @LM90_REG_W_CONVRATE
	.no_dead_strip	_lm90_write_convrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm90_write_convrate
_lm90_write_convrate:                   ; @lm90_write_convrate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	ldp	w19, w8, [x0]
Lloh0:
	adrp	x9, _LM90_PAUSE_FOR_CONFIG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LM90_PAUSE_FOR_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	orr	w1, w19, #0x40
	mov	x0, x20
	bl	_lm90_update_confreg
	tbnz	w0, #31, LBB0_3
LBB0_2:
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x8, _LM90_REG_W_CONVRATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM90_REG_W_CONVRATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_i2c_smbus_write_byte_data
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_lm90_update_confreg
	mov	x0, x21
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LM90_PAUSE_FOR_CONFIG,4,2      ; @LM90_PAUSE_FOR_CONFIG
	.comm	_LM90_REG_W_CONVRATE,4,2        ; @LM90_REG_W_CONVRATE
	.no_dead_strip	_lm90_write_convrate
.subsections_via_symbols
