	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rescale_configure_channel
_rescale_configure_channel:             ## @rescale_configure_channel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rsi), %rax
	movq	(%rax), %r14
	movl	$1, 24(%rsi)
	movl	20(%r14), %eax
	movl	%eax, 44(%rsi)
	movl	8(%rsi), %eax
	movl	%eax, 40(%rsi)
	movq	(%rsi), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rsi)
	movq	_IIO_CHAN_INFO_RAW@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_iio_channel_has_info
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_IIO_CHAN_INFO_SCALE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_iio_channel_has_info
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%r12), %edi
	callq	_BIT
	movl	%eax, %r15d
	movl	(%r13), %edi
	callq	_BIT
	orl	%r15d, %eax
	movl	%eax, 28(%rbx)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_iio_channel_has_available
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %edi
	callq	_BIT
	orl	%eax, 32(%rbx)
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_CHAN_INFO_RAW,4,2          ## @IIO_CHAN_INFO_RAW
	.comm	_IIO_CHAN_INFO_SCALE,4,2        ## @IIO_CHAN_INFO_SCALE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"source channel does not support raw/scale\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rescale_configure_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rescale_configure_channel
_rescale_configure_channel:             ; @rescale_configure_channel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x1, #16]
	ldr	x20, [x8]
	mov	w8, #1
	str	w8, [x1, #24]
	ldr	w8, [x20, #20]
	str	w8, [x1, #44]
	ldr	w8, [x1, #8]
	ldr	x9, [x1]
	ldr	w9, [x9]
	stp	w9, w8, [x1, #36]
Lloh0:
	adrp	x22, _IIO_CHAN_INFO_RAW@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IIO_CHAN_INFO_RAW@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_iio_channel_has_info
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x23, _IIO_CHAN_INFO_SCALE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IIO_CHAN_INFO_SCALE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_iio_channel_has_info
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x22]
	bl	_BIT
	mov	x21, x0
	ldr	w0, [x23]
	bl	_BIT
	orr	w8, w0, w21
	str	w8, [x19, #28]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_iio_channel_has_available
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x22]
	bl	_BIT
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_CHAN_INFO_RAW,4,2          ; @IIO_CHAN_INFO_RAW
	.comm	_IIO_CHAN_INFO_SCALE,4,2        ; @IIO_CHAN_INFO_SCALE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"source channel does not support raw/scale\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rescale_configure_channel
.subsections_via_symbols
