	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shtc1_probe
_shtc1_probe:                           ## @shtc1_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	%rdi, %r12
	movl	(%rsi), %r13d
	movq	16(%rdi), %rdi
	leaq	8(%r12), %r14
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_shtc1_cmd_read_id_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SHTC1_CMD_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_i2c_master_send
	cmpl	(%r15), %eax
	jne	LBB0_8
## %bb.2:
	leaq	-42(%rbp), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_i2c_master_recv
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.3:
	leaq	-42(%rbp), %rdi
	callq	_be16_to_cpup
	movq	_shtc3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	jne	LBB0_13
## %bb.4:
	movq	_SHTC3_ID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SHTC3_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
LBB0_7:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	testl	%ebx, %ebx
	cmovsl	%ebx, %r15d
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_SHTC1_ID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SHTC1_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_20
LBB0_14:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	movq	%rax, %r15
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 8(%r15)
	movq	%r12, 16(%r15)
	movl	%r13d, (%r15)
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
LBB0_17:
	movq	%r15, %rdi
	callq	_shtc1_select_command
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movl	(%r12), %esi
	movq	_shtc1_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_19:
	movq	%rbx, %rdi
	callq	_PTR_ERR_OR_ZERO
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_20:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_7
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plain i2c transactions not supported\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_shtc1_cmd_read_id_reg,4,2      ## @shtc1_cmd_read_id_reg
	.comm	_SHTC1_CMD_LENGTH,4,2           ## @SHTC1_CMD_LENGTH
L_.str.1:                               ## @.str.1
	.asciz	"could not send read_id_reg command: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not read ID register: %d\n"

	.comm	_shtc3,4,2                      ## @shtc3
	.comm	_SHTC3_ID_MASK,4,2              ## @SHTC3_ID_MASK
	.comm	_SHTC3_ID,4,2                   ## @SHTC3_ID
L_.str.3:                               ## @.str.3
	.asciz	"SHTC3 ID register does not match\n"

	.comm	_SHTC1_ID_MASK,4,2              ## @SHTC1_ID_MASK
	.comm	_SHTC1_ID,4,2                   ## @SHTC1_ID
L_.str.4:                               ## @.str.4
	.asciz	"SHTC1 ID register does not match\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_shtc1_groups,4,2               ## @shtc1_groups
L_.str.5:                               ## @.str.5
	.asciz	"unable to register hwmon device\n"

	.no_dead_strip	_shtc1_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function shtc1_probe
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_shtc1_probe:                           ; @shtc1_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldr	w22, [x1]
	ldr	x0, [x0, #16]
	add	x19, x20, #8
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_6
; %bb.1:
Lloh3:
	adrp	x8, _shtc1_cmd_read_id_reg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _shtc1_cmd_read_id_reg@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x23, _SHTC1_CMD_LENGTH@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SHTC1_CMD_LENGTH@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_i2c_master_send
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.2:
	add	x1, sp, #14
	mov	x0, x20
	mov	w2, #2
	bl	_i2c_master_recv
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #2
	b.ne	LBB0_8
; %bb.3:
	add	x0, sp, #14
	bl	_be16_to_cpup
Lloh8:
	adrp	x8, _shtc3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _shtc3@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_12
; %bb.4:
Lloh11:
	adrp	x8, _SHTC3_ID_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SHTC3_ID_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh14:
	adrp	x9, _SHTC3_ID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SHTC3_ID@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_13
; %bb.5:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x21, x0
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w0, w21, w8, lt
	b	LBB0_11
LBB0_8:
	str	x0, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
Lloh30:
	adrp	x8, _SHTC1_ID_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SHTC1_ID_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh33:
	adrp	x9, _SHTC1_ID@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SHTC1_ID@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
LBB0_13:
Lloh36:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_20
; %bb.14:
	mov	x21, x0
Lloh39:
	adrp	x8, lCPI0_0@PAGE
Lloh40:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0, #8]
	str	x20, [x0, #16]
	str	w22, [x0]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	x8, [x8]
	str	x8, [x21, #8]
LBB0_16:
	mov	x0, x21
	bl	_shtc1_select_command
	add	x0, x21, #4
	bl	_mutex_init
	ldr	w1, [x20]
Lloh41:
	adrp	x8, _shtc1_groups@GOTPAGE
Lloh42:
	ldr	x8, [x8, _shtc1_groups@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_hwmon_device_register_with_groups
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_18:
	mov	x0, x20
	bl	_PTR_ERR_OR_ZERO
	b	LBB0_11
LBB0_19:
Lloh46:
	adrp	x1, l_.str.4@PAGE
Lloh47:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_20:
Lloh48:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdr	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plain i2c transactions not supported\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_shtc1_cmd_read_id_reg,4,2      ; @shtc1_cmd_read_id_reg
	.comm	_SHTC1_CMD_LENGTH,4,2           ; @SHTC1_CMD_LENGTH
l_.str.1:                               ; @.str.1
	.asciz	"could not send read_id_reg command: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not read ID register: %d\n"

	.comm	_shtc3,4,2                      ; @shtc3
	.comm	_SHTC3_ID_MASK,4,2              ; @SHTC3_ID_MASK
	.comm	_SHTC3_ID,4,2                   ; @SHTC3_ID
l_.str.3:                               ; @.str.3
	.asciz	"SHTC3 ID register does not match\n"

	.comm	_SHTC1_ID_MASK,4,2              ; @SHTC1_ID_MASK
	.comm	_SHTC1_ID,4,2                   ; @SHTC1_ID
l_.str.4:                               ; @.str.4
	.asciz	"SHTC1 ID register does not match\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_shtc1_groups,4,2               ; @shtc1_groups
l_.str.5:                               ; @.str.5
	.asciz	"unable to register hwmon device\n"

	.no_dead_strip	_shtc1_probe
.subsections_via_symbols
