	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max1363_write_thresh
_max1363_write_thresh:                  ## @max1363_write_thresh
	.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	%r9d, %r15d
	movl	%ecx, %ebx
	movq	%rsi, %r14
	callq	_iio_priv
	movq	16(%rax), %rcx
	movl	(%rcx), %ecx
	cmpl	$12, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$10, %ecx
	jne	LBB0_6
## %bb.2:
	cmpl	$1024, %r15d                    ## imm = 0x400
	jl	LBB0_6
	jmp	LBB0_3
LBB0_5:
	cmpl	$4096, %r15d                    ## imm = 0x1000
	jge	LBB0_3
LBB0_6:
	cmpl	$128, %ebx
	je	LBB0_10
## %bb.7:
	cmpl	$129, %ebx
	jne	LBB0_3
## %bb.8:
	movq	(%rax), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_10:
	movq	8(%rax), %rax
LBB0_9:
	movq	(%r14), %rcx
	movl	%r15d, (%rax,%rcx,4)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max1363_write_thresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max1363_write_thresh
_max1363_write_thresh:                  ; @max1363_write_thresh
	.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, x5
	mov	x21, x3
	mov	x20, x1
	bl	_iio_priv
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, #12
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #10
	b.ne	LBB0_4
; %bb.2:
	cmp	w19, #1024
	b.lt	LBB0_4
	b	LBB0_7
LBB0_3:
	cmp	w19, #1, lsl #12                ; =4096
	b.ge	LBB0_7
LBB0_4:
	cmp	w21, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w21, #129
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #0
	ldr	x9, [x0]
	b	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_10
LBB0_8:
	mov	w8, #0
	ldr	x9, [x0, #8]
LBB0_9:
	ldr	x10, [x20]
	str	w19, [x9, x10, lsl #2]
LBB0_10:
	mov	x0, x8
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_max1363_write_thresh
.subsections_via_symbols
