	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5k_amb_hwmon_init
_i5k_amb_hwmon_init:                    ## @i5k_amb_hwmon_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_platform_get_drvdata
	movq	%rax, %r15
	movq	_MAX_MEM_CHANNELS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movl	$32767, %r12d                   ## imm = 0x7FFF
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	andl	%r12d, %edi
	callq	_hweight16
	addl	%eax, %r14d
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movq	_KNOBS_PER_AMB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movl	$24, %edx
	callq	_array3_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	$0, 8(%r15)
	movq	_MAX_MEM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.7:
	movq	_REAL_MAX_AMBS_PER_CHANNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_30
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_MAX_MEM_CHANNELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-60(%rbp), %esi                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_21
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testl	%eax, %eax
	jle	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rax
	movl	(%rax,%r12,4), %r13d
	xorl	%ebx, %ebx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=2
	incl	8(%r15)
	movq	_REAL_MAX_AMBS_PER_CHANNEL@GOTPCREL(%rip), %r14
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	incl	%ebx
	sarl	%r13d
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jge	LBB0_19
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_amb_num_from_reg
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testb	$1, %r13b
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	incl	%r12d
	movq	16(%r15), %rbx
	movslq	8(%r15), %rax
	leaq	(%rax,%rax,2), %r13
	movl	20(%rbx,%r13,8), %edi
	movq	_AMB_SYSFS_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	movl	20(%rbx,%r13,8), %eax
	leaq	(%rbx,%r13,8), %r14
	addq	$4, %r14
	movl	%eax, 8(%rbx,%r13,8)
	movl	$292, 4(%rbx,%r13,8)            ## imm = 0x124
	movq	_show_label@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx,%r13,8)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx,%r13,8)
	movq	%r14, %rdi
	callq	_sysfs_attr_init
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	8(%r15), %rax
	incq	%rax
	movl	%eax, 8(%r15)
	movq	16(%r15), %r13
	leaq	(%rax,%rax,2), %rbx
	movl	20(%r13,%rbx,8), %edi
	movq	_AMB_SYSFS_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	movl	20(%r13,%rbx,8), %eax
	leaq	4(,%rbx,8), %r14
	addq	%r13, %r14
	movl	%eax, 8(%r13,%rbx,8)
	movl	$292, 4(%r13,%rbx,8)            ## imm = 0x124
	movq	_show_amb_temp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13,%rbx,8)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13,%rbx,8)
	movq	%r14, %rdi
	callq	_sysfs_attr_init
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	8(%r15), %rax
	incq	%rax
	movl	%eax, 8(%r15)
	movq	16(%r15), %r13
	leaq	(%rax,%rax,2), %rbx
	movl	20(%r13,%rbx,8), %edi
	movq	_AMB_SYSFS_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	movl	20(%r13,%rbx,8), %eax
	leaq	4(,%rbx,8), %r14
	addq	%r13, %r14
	movl	%eax, 8(%r13,%rbx,8)
	movl	$420, 4(%r13,%rbx,8)            ## imm = 0x1A4
	movq	_show_amb_min@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13,%rbx,8)
	movq	_store_amb_min@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13,%rbx,8)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13,%rbx,8)
	movq	%r14, %rdi
	callq	_sysfs_attr_init
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	8(%r15), %rax
	incq	%rax
	movl	%eax, 8(%r15)
	movq	16(%r15), %r13
	leaq	(%rax,%rax,2), %rbx
	movl	20(%r13,%rbx,8), %edi
	movq	_AMB_SYSFS_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	movl	20(%r13,%rbx,8), %eax
	leaq	4(,%rbx,8), %r14
	addq	%r13, %r14
	movl	%eax, 8(%r13,%rbx,8)
	movl	$420, 4(%r13,%rbx,8)            ## imm = 0x1A4
	movq	_show_amb_mid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13,%rbx,8)
	movq	_store_amb_mid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13,%rbx,8)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13,%rbx,8)
	movq	%r14, %rdi
	callq	_sysfs_attr_init
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	8(%r15), %rax
	incq	%rax
	movl	%eax, 8(%r15)
	movq	16(%r15), %r13
	leaq	(%rax,%rax,2), %rbx
	movl	20(%r13,%rbx,8), %edi
	movq	_AMB_SYSFS_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	movl	20(%r13,%rbx,8), %eax
	leaq	4(,%rbx,8), %r14
	addq	%r13, %r14
	movl	%eax, 8(%r13,%rbx,8)
	movl	$420, 4(%r13,%rbx,8)            ## imm = 0x1A4
	movq	_show_amb_max@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13,%rbx,8)
	movq	_store_amb_max@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13,%rbx,8)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13,%rbx,8)
	movq	%r14, %rdi
	callq	_sysfs_attr_init
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	8(%r15), %rax
	incq	%rax
	movl	%eax, 8(%r15)
	movq	16(%r15), %r13
	leaq	(%rax,%rax,2), %rbx
	movl	20(%r13,%rbx,8), %edi
	movq	_AMB_SYSFS_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movl	%r12d, %ecx
	callq	_snprintf
	movl	20(%r13,%rbx,8), %eax
	leaq	4(,%rbx,8), %r14
	addq	%r13, %r14
	movl	%eax, 8(%r13,%rbx,8)
	movl	$292, 4(%r13,%rbx,8)            ## imm = 0x124
	movq	_show_amb_alarm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13,%rbx,8)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13,%rbx,8)
	movq	%r14, %rdi
	callq	_sysfs_attr_init
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_17
	jmp	LBB0_25
LBB0_21:
	movq	_dev_attr_name@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_device_create_file
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_26
## %bb.22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_hwmon_device_register
	movl	%eax, 24(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	movl	24(%r15), %edi
	callq	_PTR_ERR
LBB0_25:
	movl	%eax, %r14d
LBB0_26:
	movq	_dev_attr_name@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_device_remove_file
	cmpl	$0, 8(%r15)
	jle	LBB0_29
## %bb.27:
	movl	$4, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	addq	%r12, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_device_remove_file
	incq	%rbx
	movslq	8(%r15), %rax
	addq	$24, %r12
	cmpq	%rax, %rbx
	jl	LBB0_28
LBB0_29:
	movq	16(%r15), %rdi
	callq	_kfree
LBB0_30:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	xorl	%r14d, %r14d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MEM_CHANNELS,4,2           ## @MAX_MEM_CHANNELS
	.comm	_KNOBS_PER_AMB,4,2              ## @KNOBS_PER_AMB
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_REAL_MAX_AMBS_PER_CHANNEL,4,2  ## @REAL_MAX_AMBS_PER_CHANNEL
	.comm	_AMB_SYSFS_NAME_LEN,4,2         ## @AMB_SYSFS_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"temp%d_label"

	.comm	_show_label,4,2                 ## @show_label
L_.str.1:                               ## @.str.1
	.asciz	"temp%d_input"

	.comm	_show_amb_temp,4,2              ## @show_amb_temp
L_.str.2:                               ## @.str.2
	.asciz	"temp%d_min"

	.comm	_show_amb_min,4,2               ## @show_amb_min
	.comm	_store_amb_min,4,2              ## @store_amb_min
L_.str.3:                               ## @.str.3
	.asciz	"temp%d_mid"

	.comm	_show_amb_mid,4,2               ## @show_amb_mid
	.comm	_store_amb_mid,4,2              ## @store_amb_mid
L_.str.4:                               ## @.str.4
	.asciz	"temp%d_max"

	.comm	_show_amb_max,4,2               ## @show_amb_max
	.comm	_store_amb_max,4,2              ## @store_amb_max
L_.str.5:                               ## @.str.5
	.asciz	"temp%d_alarm"

	.comm	_show_amb_alarm,4,2             ## @show_amb_alarm
	.comm	_dev_attr_name,16,2             ## @dev_attr_name
	.no_dead_strip	_i5k_amb_hwmon_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5k_amb_hwmon_init
_i5k_amb_hwmon_init:                    ; @i5k_amb_hwmon_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_platform_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x23, _MAX_MEM_CHANNELS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_MEM_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8, x22, lsl #2]
	and	w0, w8, #0x7fff
	bl	_hweight16
	add	w21, w21, w0
	add	x22, x22, #1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
Lloh2:
	adrp	x8, _KNOBS_PER_AMB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KNOBS_PER_AMB@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #24
	bl	_array3_size
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_7
; %bb.5:
	str	wzr, [x20, #8]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.6:
	mov	x24, #0
	mov	w22, #0
Lloh8:
	adrp	x21, _REAL_MAX_AMBS_PER_CHANNEL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _REAL_MAX_AMBS_PER_CHANNEL@GOTPAGEOFF]
	mov	w25, #24
	ldr	w9, [x21]
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_29
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
Lloh13:
	adrp	x8, _MAX_MEM_CHANNELS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_MEM_CHANNELS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_21
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w28, #0
	ldr	x8, [x20]
	ldr	w23, [x8, x24, lsl #2]
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh16:
	adrp	x21, _REAL_MAX_AMBS_PER_CHANNEL@GOTPAGE
Lloh17:
	ldr	x21, [x21, _REAL_MAX_AMBS_PER_CHANNEL@GOTPAGEOFF]
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	mov	w25, #24
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	w28, w28, #1
	asr	w23, w23, #1
	ldr	w9, [x21]
	cmp	w28, w9
	b.ge	LBB0_8
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	x1, x28
	bl	_amb_num_from_reg
	tbz	w23, #0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x27, x0
	add	w22, w22, #1
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20, #8]
	madd	x26, x9, x25, x8
	ldr	w0, [x26, #20]
Lloh18:
	adrp	x25, _AMB_SYSFS_NAME_LEN@GOTPAGE
Lloh19:
	ldr	x25, [x25, _AMB_SYSFS_NAME_LEN@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	ldr	w8, [x26, #20]
	str	w8, [x26, #8]
	mov	x24, x26
	mov	w21, #292
	str	w21, [x24, #4]!
Lloh22:
	adrp	x8, _show_label@GOTPAGE
Lloh23:
	ldr	x8, [x8, _show_label@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x26, #12]
	str	w27, [x26]
	mov	x0, x24
	bl	_sysfs_attr_init
	mov	x0, x19
	mov	x1, x24
	bl	_device_create_file
	cbnz	w0, LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldrsw	x8, [x20, #8]
	add	x8, x8, #1
	str	w8, [x20, #8]
	ldr	x9, [x20, #16]
	mov	w10, #24
	madd	x24, x8, x10, x9
	ldr	w0, [x24, #20]
	ldr	w1, [x25]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	ldr	w8, [x24, #20]
	str	w8, [x24, #8]
	mov	x26, x24
	str	w21, [x26, #4]!
Lloh27:
	adrp	x8, _show_amb_temp@GOTPAGE
Lloh28:
	ldr	x8, [x8, _show_amb_temp@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x24, #12]
	str	w27, [x24]
	mov	x0, x26
	bl	_sysfs_attr_init
	mov	x0, x19
	mov	x1, x26
	bl	_device_create_file
	cbnz	w0, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	ldrsw	x8, [x20, #8]
	add	x8, x8, #1
	str	w8, [x20, #8]
	ldr	x9, [x20, #16]
	mov	w10, #24
	madd	x24, x8, x10, x9
	ldr	w0, [x24, #20]
	ldr	w1, [x25]
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	ldr	w8, [x24, #20]
	mov	x26, x24
	mov	w21, #420
	str	w21, [x26, #4]!
	str	w8, [x24, #8]
Lloh32:
	adrp	x8, _show_amb_min@GOTPAGE
Lloh33:
	ldr	x8, [x8, _show_amb_min@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x24, #12]
Lloh35:
	adrp	x8, _store_amb_min@GOTPAGE
Lloh36:
	ldr	x8, [x8, _store_amb_min@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x24, #16]
	str	w27, [x24]
	mov	x0, x26
	bl	_sysfs_attr_init
	mov	x0, x19
	mov	x1, x26
	bl	_device_create_file
	cbnz	w0, LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=2
	ldrsw	x8, [x20, #8]
	add	x8, x8, #1
	str	w8, [x20, #8]
	ldr	x9, [x20, #16]
	mov	w10, #24
	madd	x24, x8, x10, x9
	ldr	w0, [x24, #20]
	ldr	w1, [x25]
Lloh38:
	adrp	x2, l_.str.3@PAGE
Lloh39:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	ldr	w8, [x24, #20]
	mov	x26, x24
	str	w21, [x26, #4]!
	str	w8, [x24, #8]
Lloh40:
	adrp	x8, _show_amb_mid@GOTPAGE
Lloh41:
	ldr	x8, [x8, _show_amb_mid@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x24, #12]
Lloh43:
	adrp	x8, _store_amb_mid@GOTPAGE
Lloh44:
	ldr	x8, [x8, _store_amb_mid@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x24, #16]
	str	w27, [x24]
	mov	x0, x26
	bl	_sysfs_attr_init
	mov	x0, x19
	mov	x1, x26
	bl	_device_create_file
	cbnz	w0, LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=2
	ldrsw	x8, [x20, #8]
	add	x8, x8, #1
	str	w8, [x20, #8]
	ldr	x9, [x20, #16]
	mov	w10, #24
	madd	x24, x8, x10, x9
	ldr	w0, [x24, #20]
	ldr	w1, [x25]
Lloh46:
	adrp	x2, l_.str.4@PAGE
Lloh47:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	ldr	w8, [x24, #20]
	mov	x26, x24
	str	w21, [x26, #4]!
	str	w8, [x24, #8]
Lloh48:
	adrp	x8, _show_amb_max@GOTPAGE
Lloh49:
	ldr	x8, [x8, _show_amb_max@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	str	w8, [x24, #12]
Lloh51:
	adrp	x8, _store_amb_max@GOTPAGE
Lloh52:
	ldr	x8, [x8, _store_amb_max@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [x24, #16]
	str	w27, [x24]
	mov	x0, x26
	bl	_sysfs_attr_init
	mov	x0, x19
	mov	x1, x26
	bl	_device_create_file
	cbnz	w0, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=2
	ldrsw	x8, [x20, #8]
	add	x8, x8, #1
	str	w8, [x20, #8]
	ldr	x9, [x20, #16]
	mov	w10, #24
	madd	x24, x8, x10, x9
	ldr	w0, [x24, #20]
	ldr	w1, [x25]
Lloh54:
	adrp	x2, l_.str.5@PAGE
Lloh55:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	ldr	w8, [x24, #20]
	str	w8, [x24, #8]
	mov	x26, x24
	mov	w8, #292
	str	w8, [x26, #4]!
Lloh56:
	adrp	x8, _show_amb_alarm@GOTPAGE
Lloh57:
	ldr	x8, [x8, _show_amb_alarm@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	str	w8, [x24, #12]
	str	w27, [x24]
	mov	x0, x26
	bl	_sysfs_attr_init
	mov	x0, x19
	mov	x1, x26
	bl	_device_create_file
	cbz	w0, LBB0_12
	b	LBB0_24
LBB0_21:
Lloh59:
	adrp	x1, _dev_attr_name@GOTPAGE
Lloh60:
	ldr	x1, [x1, _dev_attr_name@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	mov	x26, x0
	cbnz	w0, LBB0_25
; %bb.22:
	mov	x0, x19
	bl	_hwmon_device_register
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_30
; %bb.23:
	ldr	w0, [x20, #24]
	bl	_PTR_ERR
LBB0_24:
	mov	x26, x0
LBB0_25:
Lloh61:
	adrp	x1, _dev_attr_name@GOTPAGE
Lloh62:
	ldr	x1, [x1, _dev_attr_name@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.26:
	mov	x21, #0
	mov	w22, #4
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x1, x8, x22
	mov	x0, x19
	bl	_device_remove_file
	add	x21, x21, #1
	ldrsw	x8, [x20, #8]
	add	x22, x22, #24
	cmp	x21, x8
	b.lt	LBB0_27
LBB0_28:
	ldr	x0, [x20, #16]
	bl	_kfree
LBB0_29:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_30:
	mov	w26, #0
	b	LBB0_29
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MEM_CHANNELS,4,2           ; @MAX_MEM_CHANNELS
	.comm	_KNOBS_PER_AMB,4,2              ; @KNOBS_PER_AMB
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_REAL_MAX_AMBS_PER_CHANNEL,4,2  ; @REAL_MAX_AMBS_PER_CHANNEL
	.comm	_AMB_SYSFS_NAME_LEN,4,2         ; @AMB_SYSFS_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"temp%d_label"

	.comm	_show_label,4,2                 ; @show_label
l_.str.1:                               ; @.str.1
	.asciz	"temp%d_input"

	.comm	_show_amb_temp,4,2              ; @show_amb_temp
l_.str.2:                               ; @.str.2
	.asciz	"temp%d_min"

	.comm	_show_amb_min,4,2               ; @show_amb_min
	.comm	_store_amb_min,4,2              ; @store_amb_min
l_.str.3:                               ; @.str.3
	.asciz	"temp%d_mid"

	.comm	_show_amb_mid,4,2               ; @show_amb_mid
	.comm	_store_amb_mid,4,2              ; @store_amb_mid
l_.str.4:                               ; @.str.4
	.asciz	"temp%d_max"

	.comm	_show_amb_max,4,2               ; @show_amb_max
	.comm	_store_amb_max,4,2              ; @store_amb_max
l_.str.5:                               ; @.str.5
	.asciz	"temp%d_alarm"

	.comm	_show_amb_alarm,4,2             ; @show_amb_alarm
	.comm	_dev_attr_name,16,2             ; @dev_attr_name
	.no_dead_strip	_i5k_amb_hwmon_init
.subsections_via_symbols
