	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sca3000_write_3db_freq
_sca3000_write_3db_freq:                ## @sca3000_write_3db_freq
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_SCA3000_REG_MODE_MEAS_MODE_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	cmpq	$0, 24(%rax)
	je	LBB0_5
## %bb.3:
	cmpl	%esi, 4(%rax)
	jne	LBB0_5
## %bb.4:
	movq	_SCA3000_REG_MODE_MEAS_MODE_OP_1@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	cmpq	$0, 16(%rax)
	je	LBB0_10
## %bb.6:
	cmpl	%esi, 8(%rax)
	jne	LBB0_10
## %bb.7:
	movq	_SCA3000_REG_MODE_MEAS_MODE_OP_2@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
	movq	_SCA3000_REG_MODE_ADDR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_sca3000_read_data_short
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	_SCA3000_REG_MODE_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	movq	(%r14), %rdx
	andl	(%rdx), %ecx
	movl	%ecx, (%rdx)
	andl	(%rax), %ebx
	orl	%ecx, %ebx
	movl	%ebx, (%rdx)
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sca3000_write_reg              ## TAILCALL
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCA3000_REG_MODE_MEAS_MODE_NORMAL,4,2 ## @SCA3000_REG_MODE_MEAS_MODE_NORMAL
	.comm	_SCA3000_REG_MODE_MEAS_MODE_OP_1,4,2 ## @SCA3000_REG_MODE_MEAS_MODE_OP_1
	.comm	_SCA3000_REG_MODE_MEAS_MODE_OP_2,4,2 ## @SCA3000_REG_MODE_MEAS_MODE_OP_2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCA3000_REG_MODE_ADDR,4,2      ## @SCA3000_REG_MODE_ADDR
	.comm	_SCA3000_REG_MODE_MODE_MASK,4,2 ## @SCA3000_REG_MODE_MODE_MASK
	.no_dead_strip	_sca3000_write_3db_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sca3000_write_3db_freq
_sca3000_write_3db_freq:                ; @sca3000_write_3db_freq
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	cmp	w9, w1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SCA3000_REG_MODE_MEAS_MODE_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCA3000_REG_MODE_MEAS_MODE_NORMAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	w9, [x8, #4]
	cmp	w9, w1
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _SCA3000_REG_MODE_MEAS_MODE_OP_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCA3000_REG_MODE_MEAS_MODE_OP_1@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_10
; %bb.6:
	ldr	w8, [x8, #8]
	cmp	w8, w1
	b.ne	LBB0_10
; %bb.7:
Lloh4:
	adrp	x8, _SCA3000_REG_MODE_MEAS_MODE_OP_2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SCA3000_REG_MODE_MEAS_MODE_OP_2@GOTPAGEOFF]
LBB0_8:
	ldr	w21, [x8]
Lloh6:
	adrp	x20, _SCA3000_REG_MODE_ADDR@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SCA3000_REG_MODE_ADDR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_sca3000_read_data_short
	cbnz	w0, LBB0_11
; %bb.9:
Lloh8:
	adrp	x8, _SCA3000_REG_MODE_MODE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCA3000_REG_MODE_MODE_MASK@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	x10, [x19]
	ldr	w11, [x10]
	bic	w9, w11, w9
	str	w9, [x10]
	ldr	w8, [x8]
	and	w8, w8, w21
	orr	w2, w8, w9
	str	w2, [x10]
	ldr	w1, [x20]
	mov	x0, x19
	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
	b	_sca3000_write_reg
LBB0_10:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SCA3000_REG_MODE_MEAS_MODE_NORMAL,4,2 ; @SCA3000_REG_MODE_MEAS_MODE_NORMAL
	.comm	_SCA3000_REG_MODE_MEAS_MODE_OP_1,4,2 ; @SCA3000_REG_MODE_MEAS_MODE_OP_1
	.comm	_SCA3000_REG_MODE_MEAS_MODE_OP_2,4,2 ; @SCA3000_REG_MODE_MEAS_MODE_OP_2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCA3000_REG_MODE_ADDR,4,2      ; @SCA3000_REG_MODE_ADDR
	.comm	_SCA3000_REG_MODE_MODE_MASK,4,2 ; @SCA3000_REG_MODE_MODE_MASK
	.no_dead_strip	_sca3000_write_3db_freq
.subsections_via_symbols
