	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sht3x_probe
_sht3x_probe:                           ## @sht3x_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, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %rdi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_sht3x_cmd_clear_status_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SHT3X_CMD_LENGTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_i2c_master_send
	cmpl	(%rbx), %eax
	jne	LBB0_4
## %bb.6:
	leaq	8(%r13), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 8(%r12)
	movq	$0, 32(%r12)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$3000, %edi                     ## imm = 0xBB8
	callq	_msecs_to_jiffies
	subq	%rax, %rbx
	movq	%rbx, 24(%r12)
	movq	%r13, 16(%r12)
	movq	_sht3x_crc8_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SHT3X_CRC8_POLYNOMIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_crc8_populate_msb
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
LBB0_10:
	movq	%r12, %rdi
	callq	_sht3x_select_command
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	callq	_mutex_init
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$600, %esi                      ## imm = 0x258
	callq	_usleep_range
	movq	%r12, %rdi
	callq	_limits_update
	testl	%eax, %eax
	jne	LBB0_5
## %bb.11:
	movq	(%r15), %rax
	movq	_sts3x@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.13:
	movq	_sts3x_groups@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ecx
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	testl	%ecx, %ecx
	cmovsl	%ecx, %eax
	jmp	LBB0_5
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_sht3x_groups@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rcx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_16:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_sht3x_cmd_clear_status_reg,4,2 ## @sht3x_cmd_clear_status_reg
	.comm	_SHT3X_CMD_LENGTH,4,2           ## @SHT3X_CMD_LENGTH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_sht3x_crc8_table,4,2           ## @sht3x_crc8_table
	.comm	_SHT3X_CRC8_POLYNOMIAL,4,2      ## @SHT3X_CRC8_POLYNOMIAL
	.comm	_sts3x,8,3                      ## @sts3x
	.comm	_sts3x_groups,8,3               ## @sts3x_groups
	.comm	_sht3x_groups,8,3               ## @sht3x_groups
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to register hwmon device\n"

	.no_dead_strip	_sht3x_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 sht3x_probe
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sht3x_probe:                           ; @sht3x_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
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_9
; %bb.1:
Lloh3:
	adrp	x8, _sht3x_cmd_clear_status_reg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sht3x_cmd_clear_status_reg@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x21, _SHT3X_CMD_LENGTH@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SHT3X_CMD_LENGTH@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_i2c_master_send
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.2:
	add	x21, x19, #8
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x22, x0
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0, #8]
	str	xzr, [x0, #32]
Lloh13:
	adrp	x8, _jiffies@GOTPAGE
Lloh14:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh15:
	ldr	x23, [x8]
	mov	w0, #3000
	bl	_msecs_to_jiffies
	sub	x8, x23, x0
	stp	x19, x8, [x22, #16]
Lloh16:
	adrp	x8, _sht3x_crc8_table@GOTPAGE
Lloh17:
	ldr	x8, [x8, _sht3x_crc8_table@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _SHT3X_CRC8_POLYNOMIAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SHT3X_CRC8_POLYNOMIAL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_crc8_populate_msb
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x8]
	str	x8, [x22, #8]
LBB0_5:
	mov	x0, x22
	bl	_sht3x_select_command
	add	x0, x22, #4
	bl	_mutex_init
	mov	x0, x22
	bl	_mutex_init
	mov	w0, #500
	mov	w1, #600
	bl	_usleep_range
	mov	x0, x22
	bl	_limits_update
	cbnz	w0, LBB0_13
; %bb.6:
	ldr	x8, [x20]
Lloh22:
	adrp	x9, _sts3x@GOTPAGE
Lloh23:
	ldr	x9, [x9, _sts3x@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
Lloh25:
	adrp	x10, _sts3x_groups@GOTPAGE
Lloh26:
	ldr	x10, [x10, _sts3x_groups@GOTPAGEOFF]
Lloh27:
	adrp	x11, _sht3x_groups@GOTPAGE
Lloh28:
	ldr	x11, [x11, _sht3x_groups@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x3, [x8]
	ldr	w1, [x19]
	mov	x0, x21
	mov	x2, x22
	bl	_devm_hwmon_device_register_with_groups
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_8:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR_OR_ZERO
LBB0_9:
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh33:
	adrp	x8, _ENODEV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, w0, w8, lt
	b	LBB0_13
LBB0_11:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_sht3x_cmd_clear_status_reg,4,2 ; @sht3x_cmd_clear_status_reg
	.comm	_SHT3X_CMD_LENGTH,4,2           ; @SHT3X_CMD_LENGTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_sht3x_crc8_table,4,2           ; @sht3x_crc8_table
	.comm	_SHT3X_CRC8_POLYNOMIAL,4,2      ; @SHT3X_CRC8_POLYNOMIAL
	.comm	_sts3x,8,3                      ; @sts3x
	.comm	_sts3x_groups,8,3               ; @sts3x_groups
	.comm	_sht3x_groups,8,3               ; @sht3x_groups
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to register hwmon device\n"

	.no_dead_strip	_sht3x_probe
.subsections_via_symbols
