	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srf08_probe
_srf08_probe:                           ## @srf08_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
	movq	_I2C_FUNC_SMBUS_READ_BYTE_DATA@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	4(%rdi), %edi
	movq	_I2C_FUNC_SMBUS_READ_WORD_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	movl	$32, %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, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 24(%r15)
	movl	8(%r12), %eax
	movl	%eax, (%r15)
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_6
## %bb.7:
	cltq
	leaq	l_switch.table.srf08_probe(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.srf08_probe.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movq	%rcx, 8(%r15)
	movq	%rax, 32(%r13)
	movl	(%r12), %eax
	movl	%eax, 24(%r13)
	movq	%r14, 16(%r13)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_srf08_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r13)
	callq	_ARRAY_SIZE
	movl	%eax, (%r13)
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	_iio_pollfunc_store_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_srf08_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_devm_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	8(%r15), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_srf08_write_range_mm
	testl	%eax, %eax
	js	LBB0_14
## %bb.11:
	movq	8(%r15), %rax
LBB0_12:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.13:
	movq	%r15, %rdi
	callq	_srf08_write_sensitivity
	testl	%eax, %eax
	js	LBB0_14
LBB0_16:
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_READ_BYTE_DATA,4,2 ## @I2C_FUNC_SMBUS_READ_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA,4,2 ## @I2C_FUNC_SMBUS_WRITE_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_READ_WORD_DATA,4,2 ## @I2C_FUNC_SMBUS_READ_WORD_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_srf02_chip_info,16,3           ## @srf02_chip_info
	.comm	_srf02_info,4,2                 ## @srf02_info
	.comm	_srf08_chip_info,16,3           ## @srf08_chip_info
	.comm	_srf08_info,4,2                 ## @srf08_info
	.comm	_srf10_chip_info,16,3           ## @srf10_chip_info
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_srf08_channels,4,2             ## @srf08_channels
	.comm	_iio_pollfunc_store_time,4,2    ## @iio_pollfunc_store_time
	.comm	_srf08_trigger_handler,4,2      ## @srf08_trigger_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setup of iio triggered buffer failed\n"

	.no_dead_strip	_srf08_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.srf08_probe
l_switch.table.srf08_probe:
	.quad	_srf10_chip_info
	.quad	_srf08_chip_info
	.quad	_srf02_chip_info

	.p2align	3                               ## @switch.table.srf08_probe.1
l_switch.table.srf08_probe.1:
	.quad	_srf08_info
	.quad	_srf08_info
	.quad	_srf02_info

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srf08_probe
_srf08_probe:                           ; @srf08_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_SMBUS_READ_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_READ_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _I2C_FUNC_SMBUS_READ_WORD_DATA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_READ_WORD_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_i2c_check_functionality
	cbz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x19, [x21, #24]
	ldr	w8, [x22, #8]
	str	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_12
; %bb.3:
	sbfiz	x8, x8, #3, #32
Lloh9:
	adrp	x9, l_switch.table.srf08_probe@PAGE
Lloh10:
	add	x9, x9, l_switch.table.srf08_probe@PAGEOFF
	ldr	x9, [x9, x8]
Lloh11:
	adrp	x10, l_switch.table.srf08_probe.1@PAGE
Lloh12:
	add	x10, x10, l_switch.table.srf08_probe.1@PAGEOFF
	ldr	x8, [x10, x8]
	str	x9, [x21, #8]
	str	x8, [x20, #32]
	ldr	w8, [x22]
	str	w8, [x20, #24]
	str	x19, [x20, #16]
Lloh13:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _srf08_channels@GOTPAGE
Lloh17:
	ldr	x9, [x9, _srf08_channels@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	add	x0, x21, #16
	bl	_mutex_init
Lloh19:
	adrp	x8, _iio_pollfunc_store_time@GOTPAGE
Lloh20:
	ldr	x8, [x8, _iio_pollfunc_store_time@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _srf08_trigger_handler@GOTPAGE
Lloh23:
	ldr	x8, [x8, _srf08_trigger_handler@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x4, #0
	bl	_devm_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_15
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_srf08_write_range_mm
	tbnz	w0, #31, LBB0_16
; %bb.6:
	ldr	x8, [x21, #8]
LBB0_7:
	ldr	x1, [x8]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_srf08_write_sensitivity
	tbnz	w0, #31, LBB0_16
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	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
	b	_devm_iio_device_register
LBB0_10:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x22
	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
LBB0_15:
	mov	x22, x0
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_16:
	mov	x22, x0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_READ_BYTE_DATA,4,2 ; @I2C_FUNC_SMBUS_READ_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA,4,2 ; @I2C_FUNC_SMBUS_WRITE_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_READ_WORD_DATA,4,2 ; @I2C_FUNC_SMBUS_READ_WORD_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_srf02_chip_info,16,3           ; @srf02_chip_info
	.comm	_srf02_info,4,2                 ; @srf02_info
	.comm	_srf08_chip_info,16,3           ; @srf08_chip_info
	.comm	_srf08_info,4,2                 ; @srf08_info
	.comm	_srf10_chip_info,16,3           ; @srf10_chip_info
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_srf08_channels,4,2             ; @srf08_channels
	.comm	_iio_pollfunc_store_time,4,2    ; @iio_pollfunc_store_time
	.comm	_srf08_trigger_handler,4,2      ; @srf08_trigger_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setup of iio triggered buffer failed\n"

	.no_dead_strip	_srf08_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.srf08_probe
l_switch.table.srf08_probe:
	.quad	_srf10_chip_info
	.quad	_srf08_chip_info
	.quad	_srf02_chip_info

	.p2align	3                               ; @switch.table.srf08_probe.1
l_switch.table.srf08_probe.1:
	.quad	_srf08_info
	.quad	_srf08_info
	.quad	_srf02_info

.subsections_via_symbols
