	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsys02d_probe
_tsys02d_probe:                         ## @tsys02d_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	4(%rdi), %edi
	movq	_I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%r14, 16(%rax)
	movq	$0, 8(%rax)
	movq	%rax, %rdi
	callq	_mutex_init
	movq	_tsys02d_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movl	(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_tsys02d_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	_TSYS02D_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$15000, %edx                    ## imm = 0x3A98
	callq	_ms_sensors_reset
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ms_sensors_read_serial
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	-28(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_iio_device_register
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA,4,2 ## @I2C_FUNC_SMBUS_WRITE_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ## @I2C_FUNC_SMBUS_WRITE_BYTE
	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ## @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adapter does not support some i2c transaction\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tsys02d_info,4,2               ## @tsys02d_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_tsys02d_channels,4,2           ## @tsys02d_channels
	.comm	_TSYS02D_RESET,4,2              ## @TSYS02D_RESET
L_.str.1:                               ## @.str.1
	.asciz	"Serial number : %llx"

	.no_dead_strip	_tsys02d_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsys02d_probe
_tsys02d_probe:                         ; @tsys02d_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	bl	_iio_priv
	stp	xzr, x19, [x0, #8]
	bl	_mutex_init
Lloh9:
	adrp	x8, _tsys02d_info@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tsys02d_info@GOTPAGEOFF]
	str	x8, [x20, #32]
	ldr	w8, [x21]
	str	w8, [x20, #24]
	str	x19, [x20, #16]
Lloh11:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _tsys02d_channels@GOTPAGE
Lloh15:
	ldr	x9, [x9, _tsys02d_channels@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
Lloh17:
	adrp	x8, _TSYS02D_RESET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TSYS02D_RESET@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #15000
	bl	_ms_sensors_reset
	cbnz	w0, LBB0_8
; %bb.3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_ms_sensors_read_serial
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w2, [sp, #12]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	b	LBB0_8
LBB0_5:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh24:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA,4,2 ; @I2C_FUNC_SMBUS_WRITE_BYTE_DATA
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ; @I2C_FUNC_SMBUS_WRITE_BYTE
	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ; @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adapter does not support some i2c transaction\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tsys02d_info,4,2               ; @tsys02d_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_tsys02d_channels,4,2           ; @tsys02d_channels
	.comm	_TSYS02D_RESET,4,2              ; @TSYS02D_RESET
l_.str.1:                               ; @.str.1
	.asciz	"Serial number : %llx"

	.no_dead_strip	_tsys02d_probe
.subsections_via_symbols
