	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stx104_write_raw
_stx104_write_raw:                      ## @stx104_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r14
	callq	_iio_priv
	cmpq	$128, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_7
## %bb.2:
	decl	%r15d
	cmpl	$7, %r15d
	ja	LBB0_7
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r15,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_4:
	movl	8(%rax), %esi
	addl	$11, %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_outb
	jmp	LBB0_14
LBB0_5:
	cmpl	$0, 8(%r14)
	je	LBB0_7
## %bb.6:
	cmpl	$65536, %r15d                   ## imm = 0x10000
	jb	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_8:
	movq	(%rax), %rcx
	movq	(%r14), %rdx
	movl	%r15d, (%rcx,%rdx,4)
	movl	8(%rax), %eax
	leal	(%rax,%rdx,2), %esi
	addl	$4, %esi
	movl	%r15d, %edi
	callq	_outw
	jmp	LBB0_13
LBB0_9:
	movl	8(%rax), %esi
	addl	$11, %esi
	movl	$1, %edi
	jmp	LBB0_12
LBB0_10:
	movl	8(%rax), %esi
	addl	$11, %esi
	movl	$2, %edi
	jmp	LBB0_12
LBB0_11:
	movl	8(%rax), %esi
	addl	$11, %esi
	movl	$3, %edi
LBB0_12:
	callq	_outb
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_stx104_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stx104_write_raw
_stx104_write_raw:                      ; @stx104_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	x21, x4
	mov	x19, x2
	mov	x20, x1
	bl	_iio_priv
	cmp	x21, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x21, #129
	b.ne	LBB0_7
; %bb.2:
	sub	w8, w19, #1
	cmp	w8, #7
	b.hi	LBB0_7
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w8, [x0, #8]
	add	w1, w8, #11
	mov	w0, #0
	b	LBB0_12
LBB0_5:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_7
; %bb.6:
	cmp	w19, #16, lsl #12               ; =65536
	b.lo	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_8:
	ldr	x8, [x0]
	ldr	x9, [x20]
	str	w19, [x8, x9, lsl #2]
	ldr	w8, [x0, #8]
	add	w8, w8, w9, lsl #1
	add	w1, w8, #4
	mov	x0, x19
	bl	_outw
	b	LBB0_13
LBB0_9:
	ldr	w8, [x0, #8]
	add	w1, w8, #11
	mov	w0, #1
	b	LBB0_12
LBB0_10:
	ldr	w8, [x0, #8]
	add	w1, w8, #11
	mov	w0, #2
	b	LBB0_12
LBB0_11:
	ldr	w8, [x0, #8]
	add	w1, w8, #11
	mov	w0, #3
LBB0_12:
	bl	_outb
LBB0_13:
	mov	w0, #0
LBB0_14:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_stx104_write_raw
.subsections_via_symbols
