	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp3422_probe
_mcp3422_probe:                         ## @mcp3422_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, %r12
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r14, 8(%rax)
	movl	(%r12), %eax
	movl	%eax, (%r15)
	leaq	4(%r15), %rdi
	callq	_mutex_init
	movq	%r14, 40(%r13)
	movl	(%r14), %eax
	movl	%eax, 32(%r13)
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 28(%r13)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_mcp3422_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movl	(%r15), %eax
	decl	%eax
	cmpl	$7, %eax
	ja	LBB0_7
## %bb.6:
	cltq
	leaq	l_switch.table.mcp3422_probe(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rdi
	movq	%rdi, 8(%r13)
	callq	_ARRAY_SIZE
	movq	%rax, (%r13)
LBB0_7:
	movq	_MCP3422_CONT_SAMPLING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_MCP3422_CHANNEL_VALUE
	orl	%eax, %ebx
	movq	_MCP3422_PGA_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MCP3422_PGA_VALUE
	orl	%eax, %ebx
	movq	_MCP3422_SRATE_240@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MCP3422_SAMPLE_RATE_VALUE
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mcp3422_update_config
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_devm_iio_device_register
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_mcp3422_info,4,2               ## @mcp3422_info
	.comm	_mcp3421_channels,8,3           ## @mcp3421_channels
	.comm	_mcp3422_channels,8,3           ## @mcp3422_channels
	.comm	_mcp3424_channels,8,3           ## @mcp3424_channels
	.comm	_MCP3422_CONT_SAMPLING,4,2      ## @MCP3422_CONT_SAMPLING
	.comm	_MCP3422_PGA_1,4,2              ## @MCP3422_PGA_1
	.comm	_MCP3422_SRATE_240,4,2          ## @MCP3422_SRATE_240
	.no_dead_strip	_mcp3422_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mcp3422_probe
l_switch.table.mcp3422_probe:
	.quad	_mcp3421_channels
	.quad	_mcp3422_channels
	.quad	_mcp3422_channels
	.quad	_mcp3424_channels
	.quad	_mcp3421_channels
	.quad	_mcp3422_channels
	.quad	_mcp3422_channels
	.quad	_mcp3424_channels

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp3422_probe
_mcp3422_probe:                         ; @mcp3422_probe
	.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	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	str	x19, [x0, #8]
	ldr	x8, [x22]
	str	w8, [x0], #4
	bl	_mutex_init
	str	x19, [x20, #40]
	ldr	w8, [x19]
	str	w8, [x20, #32]
	mov	x0, x19
	bl	_dev_name
Lloh3:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #24]
Lloh6:
	adrp	x8, _mcp3422_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mcp3422_info@GOTPAGEOFF]
	str	x8, [x20, #16]
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.3:
Lloh8:
	adrp	x9, l_switch.table.mcp3422_probe@PAGE
Lloh9:
	add	x9, x9, l_switch.table.mcp3422_probe@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x0, [x8]
	str	x0, [x20, #8]
	bl	_ARRAY_SIZE
	str	x0, [x20]
LBB0_4:
Lloh10:
	adrp	x8, _MCP3422_CONT_SAMPLING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MCP3422_CONT_SAMPLING@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	mov	w0, #0
	bl	_MCP3422_CHANNEL_VALUE
	orr	w22, w0, w22
Lloh13:
	adrp	x8, _MCP3422_PGA_1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MCP3422_PGA_1@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_MCP3422_PGA_VALUE
	orr	w22, w22, w0
Lloh16:
	adrp	x8, _MCP3422_SRATE_240@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MCP3422_SRATE_240@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_MCP3422_SAMPLE_RATE_VALUE
	orr	w1, w22, w0
	mov	x0, x21
	bl	_mcp3422_update_config
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	tbnz	w0, #31, LBB0_10
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_mcp3422_info,4,2               ; @mcp3422_info
	.comm	_mcp3421_channels,8,3           ; @mcp3421_channels
	.comm	_mcp3422_channels,8,3           ; @mcp3422_channels
	.comm	_mcp3424_channels,8,3           ; @mcp3424_channels
	.comm	_MCP3422_CONT_SAMPLING,4,2      ; @MCP3422_CONT_SAMPLING
	.comm	_MCP3422_PGA_1,4,2              ; @MCP3422_PGA_1
	.comm	_MCP3422_SRATE_240,4,2          ; @MCP3422_SRATE_240
	.no_dead_strip	_mcp3422_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mcp3422_probe
l_switch.table.mcp3422_probe:
	.quad	_mcp3421_channels
	.quad	_mcp3422_channels
	.quad	_mcp3422_channels
	.quad	_mcp3424_channels
	.quad	_mcp3421_channels
	.quad	_mcp3422_channels
	.quad	_mcp3422_channels
	.quad	_mcp3424_channels

.subsections_via_symbols
