	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_lradc_adc_write_raw
_mxs_lradc_adc_write_raw:               ## @mxs_lradc_adc_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %r15
	movq	%r14, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %r8
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpq	$128, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.2:
	movq	_MXS_LRADC_DIV_DISABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %edx
	cmpl	%r15d, (%rdi,%rax,8)
	movl	%r13d, %ecx
	jne	LBB0_5
## %bb.3:
	cmpl	%ecx, 4(%rdi,%rax,8)
	jne	LBB0_5
## %bb.4:
	movq	(%r8), %rdi
	movq	%r12, %rsi
	callq	_clear_bit
	jmp	LBB0_8
LBB0_5:
	movq	_MXS_LRADC_DIV_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%edx, (%rdi,%rax,8)
	jne	LBB0_9
## %bb.6:
	cmpl	%ecx, 4(%rdi,%rax,8)
	jne	LBB0_9
## %bb.7:
	movq	(%r8), %rdi
	movq	%r12, %rsi
	callq	_set_bit
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_iio_device_release_direct_mode
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MXS_LRADC_DIV_DISABLED,8,3     ## @MXS_LRADC_DIV_DISABLED
	.comm	_MXS_LRADC_DIV_ENABLED,8,3      ## @MXS_LRADC_DIV_ENABLED
	.no_dead_strip	_mxs_lradc_adc_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_lradc_adc_write_raw
_mxs_lradc_adc_write_raw:               ; @mxs_lradc_adc_write_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x21]
	ldr	x26, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_iio_device_claim_direct_mode
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	cmp	x25, #128
	b.ne	LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _MXS_LRADC_DIV_DISABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MXS_LRADC_DIV_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	x9, x8, #3
	ldr	w9, [x26, x9]
	cmp	w9, w24
	b.ne	LBB0_5
; %bb.3:
	add	x8, x26, x8, lsl #3
	ldr	w8, [x8, #4]
	cmp	w8, w23
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x21]
	mov	x1, x20
	bl	_clear_bit
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _MXS_LRADC_DIV_ENABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MXS_LRADC_DIV_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	lsl	x9, x8, #3
	ldr	w9, [x26, x9]
	cmp	w9, w24
	b.ne	LBB0_9
; %bb.6:
	add	x8, x26, x8, lsl #3
	ldr	w8, [x8, #4]
	cmp	w8, w23
	b.ne	LBB0_9
; %bb.7:
	ldr	x0, [x21]
	mov	x1, x20
	bl	_set_bit
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x19
	bl	_iio_device_release_direct_mode
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MXS_LRADC_DIV_DISABLED,8,3     ; @MXS_LRADC_DIV_DISABLED
	.comm	_MXS_LRADC_DIV_ENABLED,8,3      ; @MXS_LRADC_DIV_ENABLED
	.no_dead_strip	_mxs_lradc_adc_write_raw
.subsections_via_symbols
