	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t5403_probe
_t5403_probe:                           ## @t5403_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_I2C_FUNC_SMBUS_WORD_DATA@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_I2C_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_T5403_SLAVE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movq	_T5403_I2C_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_T5403_I2C_ADDR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%rbx, 8(%rax)
	leaq	20(%rax), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	_t5403_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movl	(%r14), %eax
	movl	%eax, 24(%r15)
	movq	%rbx, 16(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_t5403_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, (%r15)
	movq	_T5403_MODE_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	(%r12), %rcx
	movq	8(%r12), %rdi
	movq	_T5403_CALIB_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_i2c_smbus_read_i2c_block_data
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ## @I2C_FUNC_SMBUS_WORD_DATA
	.comm	_I2C_FUNC_SMBUS_I2C_BLOCK,4,2   ## @I2C_FUNC_SMBUS_I2C_BLOCK
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_T5403_SLAVE_ADDR,4,2           ## @T5403_SLAVE_ADDR
	.comm	_T5403_I2C_MASK,4,2             ## @T5403_I2C_MASK
	.comm	_T5403_I2C_ADDR,4,2             ## @T5403_I2C_ADDR
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_t5403_info,4,2                 ## @t5403_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_t5403_channels,4,2             ## @t5403_channels
	.comm	_T5403_MODE_STANDARD,4,2        ## @T5403_MODE_STANDARD
	.comm	_T5403_CALIB_DATA,4,2           ## @T5403_CALIB_DATA
	.no_dead_strip	_t5403_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t5403_probe
_t5403_probe:                           ; @t5403_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGEOFF]
	ldr	w0, [x0, #4]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_I2C_BLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_I2C_BLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_check_functionality
	cbz	w0, LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _T5403_SLAVE_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _T5403_SLAVE_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_10
; %bb.2:
Lloh9:
	adrp	x8, _T5403_I2C_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _T5403_I2C_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _T5403_I2C_ADDR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _T5403_I2C_ADDR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x19
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, x0
	bl	_iio_priv
	mov	x22, x0
	str	x19, [x0, #8]
	add	x0, x0, #20
	bl	_mutex_init
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_set_clientdata
Lloh15:
	adrp	x8, _t5403_info@GOTPAGE
Lloh16:
	ldr	x8, [x8, _t5403_info@GOTPAGEOFF]
	str	x8, [x21, #32]
	ldr	w8, [x20]
	str	w8, [x21, #24]
	str	x19, [x21, #16]
Lloh17:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _t5403_channels@GOTPAGE
Lloh21:
	ldr	x9, [x9, _t5403_channels@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #4]
	bl	_ARRAY_SIZE
	str	w0, [x21]
Lloh23:
	adrp	x8, _T5403_MODE_STANDARD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _T5403_MODE_STANDARD@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x22, #16]
Lloh26:
	adrp	x8, _T5403_CALIB_DATA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _T5403_CALIB_DATA@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldp	x3, x0, [x22]
	mov	w2, #8
	bl	_i2c_smbus_read_i2c_block_data
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	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_6:
Lloh29:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ; @I2C_FUNC_SMBUS_WORD_DATA
	.comm	_I2C_FUNC_SMBUS_I2C_BLOCK,4,2   ; @I2C_FUNC_SMBUS_I2C_BLOCK
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_T5403_SLAVE_ADDR,4,2           ; @T5403_SLAVE_ADDR
	.comm	_T5403_I2C_MASK,4,2             ; @T5403_I2C_MASK
	.comm	_T5403_I2C_ADDR,4,2             ; @T5403_I2C_ADDR
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_t5403_info,4,2                 ; @t5403_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_t5403_channels,4,2             ; @t5403_channels
	.comm	_T5403_MODE_STANDARD,4,2        ; @T5403_MODE_STANDARD
	.comm	_T5403_CALIB_DATA,4,2           ; @T5403_CALIB_DATA
	.no_dead_strip	_t5403_probe
.subsections_via_symbols
