	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rescale_probe
_rescale_probe:                         ## @rescale_probe
	.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	%rdi, %r15
	xorl	%esi, %esi
	callq	_devm_iio_channel_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	callq	_iio_get_channel_ext_info_count
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	leal	(%rax,%rax,2), %ecx
	leal	24(,%rcx,8), %r13d
	cmovel	%eax, %r13d
	leal	40(%r13), %esi
	movq	%r15, %rdi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 32(%r12)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_21
## %bb.8:
	cmpl	$0, (%r12)
	je	LBB0_10
## %bb.9:
	cmpl	$0, 4(%r12)
	je	LBB0_10
## %bb.11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, 24(%r12)
	movq	%r15, %rdi
	callq	_dev_name
	movl	%eax, 40(%r14)
	movq	%r15, 32(%r14)
	movq	_rescale_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r12, %rax
	addq	$16, %rax
	movq	%rax, 8(%r14)
	movl	$1, (%r14)
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.12:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_devm_kmemdup
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.13:
	cmpq	$0, 16(%rax)
	je	LBB0_20
## %bb.14:
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	addq	$8, %rcx
	xorl	%edx, %edx
	movq	_rescale_write_ext_info@GOTPCREL(%rip), %rsi
	movq	_rescale_read_ext_info@GOTPCREL(%rip), %rdi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%edx, (%rax)
	addq	$16, %rcx
	incl	%edx
	cmpq	$0, 40(%rax)
	leaq	24(%rax), %rax
	je	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rdi), %ebx
	movl	%ebx, 8(%rax)
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, -8(%rcx)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rsi), %ebx
	movl	%ebx, 4(%rax)
	jmp	LBB0_19
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_rescale_configure_channel
	testl	%eax, %eax
	jne	LBB0_21
## %bb.22:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get source channel\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"invalid scaling factor.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rescale_info,4,2               ## @rescale_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_rescale_read_ext_info,4,2      ## @rescale_read_ext_info
	.comm	_rescale_write_ext_info,4,2     ## @rescale_write_ext_info
	.no_dead_strip	_rescale_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rescale_probe
_rescale_probe:                         ; @rescale_probe
	.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, x0
	mov	x1, #0
	bl	_devm_iio_channel_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_PTR_ERR
Lloh0:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_3:
	mov	x0, x21
	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
	b	_PTR_ERR
LBB0_4:
	mov	x0, x21
	bl	_iio_get_channel_ext_info_count
	mov	w8, #24
	orr	w9, wzr, #0x18
	madd	w8, w0, w8, w9
	cmp	w0, #0
	csel	w23, wzr, w8, eq
	add	w1, w23, #40
	mov	x0, x19
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_17
; %bb.5:
	mov	x20, x0
	bl	_iio_priv
	mov	x22, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x22, #32]
	movi.2s	v0, #1
	str	d0, [x22]
	ldr	x8, [x0]
	mov	x0, x19
	mov	x1, x22
	blr	x8
	cbnz	w0, LBB0_20
; %bb.6:
	ldr	w8, [x22]
	cbz	w8, LBB0_18
; %bb.7:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_18
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	str	x21, [x22, #24]
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #40]
Lloh5:
	adrp	x8, _rescale_info@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rescale_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #24]
Lloh7:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	add	x8, x22, #16
	str	x8, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
	cbz	w23, LBB0_21
; %bb.9:
	ldr	x8, [x21]
	ldr	x1, [x8]
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_devm_kmemdup
	str	x0, [x22, #8]
	cbz	x0, LBB0_17
; %bb.10:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_21
; %bb.11:
	mov	w8, #0
	ldr	x9, [x21]
	ldr	x9, [x9]
	add	x9, x9, #8
Lloh13:
	adrp	x10, _rescale_write_ext_info@GOTPAGE
Lloh14:
	ldr	x10, [x10, _rescale_write_ext_info@GOTPAGEOFF]
Lloh15:
	adrp	x11, _rescale_read_ext_info@GOTPAGE
Lloh16:
	ldr	x11, [x11, _rescale_read_ext_info@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	str	w8, [x0]
	ldr	x12, [x0, #40]
	add	x0, x0, #24
	add	x9, x9, #16
	add	w8, w8, #1
	cbz	x12, LBB0_21
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9]
	cbz	x12, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w12, [x11]
	str	w12, [x0, #8]
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldur	x12, [x9, #-8]
	cbz	x12, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w12, [x10]
	str	w12, [x0, #4]
	b	LBB0_12
LBB0_17:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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
LBB0_21:
	mov	x0, x19
	mov	x1, x22
	bl	_rescale_configure_channel
	cbnz	w0, LBB0_20
; %bb.22:
	mov	x0, x19
	mov	x1, x20
	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
	b	_devm_iio_device_register
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get source channel\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"invalid scaling factor.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rescale_info,4,2               ; @rescale_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_rescale_read_ext_info,4,2      ; @rescale_read_ext_info
	.comm	_rescale_write_ext_info,4,2     ; @rescale_write_ext_info
	.no_dead_strip	_rescale_probe
.subsections_via_symbols
