	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max517_probe
_max517_probe:                          ## @max517_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	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, 8(%r15)
	movq	%r12, 24(%rbx)
	movl	(%r14), %eax
	leal	-128(%rax), %edx
	movl	$1, %ecx
	cmpl	$3, %edx
	ja	LBB0_3
## %bb.2:
	movslq	%edx, %rcx
	leaq	L_switch.table.max517_probe(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
LBB0_3:
	movl	%ecx, (%rbx)
	movq	_max517_channels@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movq	_max517_info@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rbx)
	movq	(%r15), %rcx
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$5000, %esi                     ## imm = 0x1388
	cmpl	$131, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	movl	-4(%rax,%rdx,4), %esi
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%esi, -4(%rcx,%rdx,4)
	movslq	(%rbx), %rax
	cmpq	%rax, %rdx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %eax
	incq	%rdx
	jmp	LBB0_4
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_device_register            ## TAILCALL
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_max517_channels,4,2            ## @max517_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_max517_info,4,2                ## @max517_info
	.no_dead_strip	_max517_probe
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.max517_probe
L_switch.table.max517_probe:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max517_probe
_max517_probe:                          ; @max517_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, x1
	mov	x22, x0
	ldr	x23, [x0]
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x22
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x22, [x21, #8]
	str	x22, [x20, #24]
	ldr	w9, [x19]
	sub	w8, w9, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x10, l_switch.table.max517_probe@PAGE
Lloh1:
	add	x10, x10, l_switch.table.max517_probe@PAGEOFF
	ldr	w10, [x10, w8, sxtw #2]
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	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_4:
	mov	w10, #1
LBB0_5:
	mov	x8, #0
	str	w10, [x20]
Lloh5:
	adrp	x10, _max517_channels@GOTPAGE
Lloh6:
	ldr	x10, [x10, _max517_channels@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	stp	w11, w10, [x20, #16]
Lloh11:
	adrp	x10, _max517_info@GOTPAGE
Lloh12:
	ldr	x10, [x10, _max517_info@GOTPAGEOFF]
	str	x10, [x20, #8]
	ldr	x10, [x21]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w11, #5000
	cmp	w9, #131
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x23, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x23]
	ldr	w11, [x9, x8, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w11, [x10, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x19]
	b	LBB0_6
LBB0_11:
	mov	x0, 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	_iio_device_register
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_max517_channels,4,2            ; @max517_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_max517_info,4,2                ; @max517_info
	.no_dead_strip	_max517_probe
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.max517_probe
l_switch.table.max517_probe:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	2                               ; 0x2

.subsections_via_symbols
