	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc35240_write_raw
_mmc35240_write_raw:                    ## @mmc35240_write_raw
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movl	%edx, %r12d
	callq	_iio_priv
	cmpq	$128, %rbx
	jne	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_mmc35240_get_samp_freq_index
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	4(%r14), %edi
	movq	_MMC35240_REG_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MMC35240_CTRL1_BW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MMC35240_CTRL1_BW_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMC35240_REG_CTRL1,4,2         ## @MMC35240_REG_CTRL1
	.comm	_MMC35240_CTRL1_BW_MASK,4,2     ## @MMC35240_CTRL1_BW_MASK
	.comm	_MMC35240_CTRL1_BW_SHIFT,4,2    ## @MMC35240_CTRL1_BW_SHIFT
	.no_dead_strip	_mmc35240_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc35240_write_raw
_mmc35240_write_raw:                    ; @mmc35240_write_raw
	.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	x22, x4
	mov	x20, x3
	mov	x21, x2
	bl	_iio_priv
	cmp	x22, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x1, x21
	mov	x2, x20
	bl	_mmc35240_get_samp_freq_index
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _MMC35240_REG_CTRL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC35240_REG_CTRL1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MMC35240_CTRL1_BW_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMC35240_CTRL1_BW_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w2, [x9]
Lloh6:
	adrp	x8, _MMC35240_CTRL1_BW_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMC35240_CTRL1_BW_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w3, w20, w8
	bl	_regmap_update_bits
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMC35240_REG_CTRL1,4,2         ; @MMC35240_REG_CTRL1
	.comm	_MMC35240_CTRL1_BW_MASK,4,2     ; @MMC35240_CTRL1_BW_MASK
	.comm	_MMC35240_CTRL1_BW_SHIFT,4,2    ; @MMC35240_CTRL1_BW_SHIFT
	.no_dead_strip	_mmc35240_write_raw
.subsections_via_symbols
