	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg216x_set_if
_lg216x_set_if:                         ## @lg216x_set_if
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_lg_dbg
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$306, %esi                      ## imm = 0x132
	callq	_lg216x_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_fail
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	$251, %eax
	andl	-20(%rbp), %eax
	movq	(%r14), %rcx
	xorl	%edx, %edx
	cmpq	$0, (%rcx)
	sete	%dl
	leal	(%rax,%rdx,4), %edx
	movl	%edx, -20(%rbp)
	movq	%r14, %rdi
	movl	$306, %esi                      ## imm = 0x132
	callq	_lg216x_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_fail
LBB0_2:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d KHz\n"

	.no_dead_strip	_lg216x_set_if
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg216x_set_if
_lg216x_set_if:                         ; @lg216x_set_if
	.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	x19, x0
	ldr	x8, [x0]
	ldr	x1, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lg_dbg
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #306
	bl	_lg216x_read_reg
	mov	x20, x0
	bl	_lg_fail
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	mov	w9, #251
	and	w2, w8, w9
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, eq
	bfi	w2, w8, #2, #1
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #306
	bl	_lg216x_write_reg
	mov	x20, x0
	bl	_lg_fail
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d KHz\n"

	.no_dead_strip	_lg216x_set_if
.subsections_via_symbols
