	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp401_probe
_tmp401_probe:                          ## @tmp401_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, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movl	(%r14), %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_tmp401_init_client
	movq	_tmp401_attr@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_3
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_tmp411@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.6:
	movq	_tmp411_attr@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%r14, %rsi
	movq	%r15, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_10:
	movq	%r15, %rdi
	callq	_hwmon_device_register
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	$0, 8(%rbx)
	jmp	LBB0_16
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_15:
	movl	%eax, %r13d
LBB0_16:
	movq	%r15, %rdi
	callq	_tmp401_remove
	jmp	LBB0_17
LBB0_14:
	movslq	(%rbx), %rax
	leaq	l_reltable.tmp401_probe(%rip), %rcx
	movslq	-4(%rcx,%rax,4), %rdx
	addq	%rcx, %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%r13d, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TMP401"

L_.str.1:                               ## @.str.1
	.asciz	"TMP411"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.tmp401_probe
l_reltable.tmp401_probe:
	.long	L_.str-l_reltable.tmp401_probe
	.long	L_.str.1-l_reltable.tmp401_probe

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tmp401_attr,8,3                ## @tmp401_attr
	.comm	_tmp411,4,2                     ## @tmp411
	.comm	_tmp411_attr,8,3                ## @tmp411_attr
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Detected TI %s chip\n"

	.no_dead_strip	_tmp401_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp401_probe
_tmp401_probe:                          ; @tmp401_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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	add	x0, x20, #16
	bl	_mutex_init
	ldr	w8, [x21]
	str	w8, [x20]
	mov	x0, x19
	bl	_tmp401_init_client
Lloh3:
	adrp	x22, _tmp401_attr@GOTPAGE
Lloh4:
	ldr	x22, [x22, _tmp401_attr@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, #0
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x1, x8, x23
	mov	x0, x19
	bl	_device_create_file
	cbnz	w0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #4
	cmp	x24, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _tmp411@GOTPAGE
Lloh6:
	ldr	x9, [x9, _tmp411@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.6:
Lloh8:
	adrp	x22, _tmp411_attr@GOTPAGE
Lloh9:
	ldr	x22, [x22, _tmp411_attr@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x23, #0
	mov	x24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x1, x8, x23
	mov	x0, x19
	bl	_device_create_file
	cbnz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #4
	cmp	x24, w0, sxtw
	b.lt	LBB0_8
LBB0_10:
	mov	x0, x19
	bl	_hwmon_device_register
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.11:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x21, x0
	str	xzr, [x20, #8]
	b	LBB0_14
LBB0_12:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_13:
	mov	x21, x0
LBB0_14:
	mov	x0, x19
	bl	_tmp401_remove
	b	LBB0_16
LBB0_15:
	ldrsw	x8, [x20]
Lloh13:
	adrp	x9, l___const.tmp401_probe.names@PAGE
Lloh14:
	add	x9, x9, l___const.tmp401_probe.names@PAGEOFF
	add	x8, x9, x8, lsl #3
	ldur	x2, [x8, #-8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w21, #0
LBB0_16:
	mov	x0, x21
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TMP401"

l_.str.1:                               ; @.str.1
	.asciz	"TMP411"

	.section	__DATA,__const
	.p2align	3                               ; @__const.tmp401_probe.names
l___const.tmp401_probe.names:
	.quad	l_.str
	.quad	l_.str.1

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tmp401_attr,8,3                ; @tmp401_attr
	.comm	_tmp411,4,2                     ; @tmp411
	.comm	_tmp411_attr,8,3                ; @tmp411_attr
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Detected TI %s chip\n"

	.no_dead_strip	_tmp401_probe
.subsections_via_symbols
