	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mux_write_ext_info
_mux_write_ext_info:                    ## @mux_write_ext_info
	.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, %r13
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	(%rdi), %r14
	callq	_iio_priv
	movq	%rax, %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jbe	LBB0_1
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	subq	24(%rdi), %rbx
	shrq	$2, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	callq	_iio_mux_select
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	%r13, %r12
	leaq	1(%r13), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r14
	movq	%r15, %rsi
	callq	_devm_kmemdup
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movb	$0, (%rax,%r12)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	16(%r15), %edi
	movq	8(%r15), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_iio_write_channel_ext_info
	movq	%r12, %rcx
	movq	%rax, %r12
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	(%r15), %rax
	movslq	%ebx, %rbx
	movq	(%rax,%rbx,8), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	shlq	$4, %r14
	movq	(%rax,%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_devm_kfree
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%r13, (%rax,%r14)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax,%r14)
	movq	%r15, %rdi
	callq	_iio_mux_deselect
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_10
LBB0_4:
	movq	%rax, %r12
	jmp	LBB0_10
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_mux_deselect
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	%r15, %rdi
	callq	_iio_mux_deselect
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_devm_kfree
LBB0_10:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.no_dead_strip	_mux_write_ext_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mux_write_ext_info
_mux_write_ext_info:                    ; @mux_write_ext_info
	.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	x19, x4
	mov	x24, x3
	mov	x23, x2
	mov	x22, x1
	ldr	x21, [x0]
	bl	_iio_priv
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #24]
	sub	x26, x23, x8
	lsr	x1, x26, #2
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_iio_mux_select
	tbnz	x0, #63, LBB0_7
; %bb.2:
	add	x2, x19, #1
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x24
	bl	_devm_kmemdup
	cbz	x0, LBB0_8
; %bb.3:
	mov	x25, x0
	strb	wzr, [x0, x19]
	ldr	w0, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x22, lsl #2]
	mov	x2, x24
	mov	x3, x19
	bl	_iio_write_channel_ext_info
	mov	x23, x0
	tbnz	x0, #63, LBB0_9
; %bb.4:
	ldr	x8, [x20]
	sbfx	x9, x26, #2, #32
	lsl	x24, x9, #3
	ldr	x8, [x8, x24]
	lsl	x22, x22, #4
	ldr	x1, [x8, x22]
	mov	x0, x21
	bl	_devm_kfree
	ldr	x8, [x20]
	ldr	x8, [x8, x24]
	add	x8, x8, x22
	stp	x25, x19, [x8]
	mov	x0, x20
	bl	_iio_mux_deselect
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	neg	x23, x8
	b	LBB0_10
LBB0_7:
	mov	x23, x0
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_iio_mux_deselect
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
	mov	x0, x20
	bl	_iio_mux_deselect
	mov	x0, x21
	mov	x1, x25
	bl	_devm_kfree
LBB0_10:
	mov	x0, x23
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.no_dead_strip	_mux_write_ext_info
.subsections_via_symbols
