	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_sensor
_create_sensor:                         ## @create_sensor
	.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
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_TEMP_SENSOR@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	jne	LBB0_4
## %bb.3:
	movq	_temp_sensor_name_templates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %r13
	movq	(%rax,%r13,8), %rsi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movq	_POWER_SENSOR@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.6:
	movq	_power_sensor_name_templates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %r13
	movq	(%rax,%r13,8), %rsi
	leaq	L_.str.1(%rip), %rdx
LBB0_7:
	movq	%r12, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_sprintf
	jmp	LBB0_8
LBB0_5:
	movslq	%r15d, %r13
LBB0_8:
	movl	%r15d, %edx
	movq	(%r14), %rax
	movslq	-48(%rbp), %r15                 ## 4-byte Folded Reload
	movq	(%rax,%r15,8), %rax
	shlq	$5, %r13
	leaq	(%rax,%r13), %rsi
	addq	$8, %rsi
	movq	%r12, 8(%rax,%r13)
	movq	_S_IRUGO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax,%r13)
	movq	_ibmpex_show_sensor@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax,%r13)
	movl	%r15d, (%rax,%r13)
	movl	%edx, 4(%rax,%r13)
	movl	8(%r14), %edi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movq	$0, 8(%rax,%r13)
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TEMP_SENSOR,4,2                ## @TEMP_SENSOR
	.comm	_temp_sensor_name_templates,8,3 ## @temp_sensor_name_templates
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"temp"

	.comm	_POWER_SENSOR,4,2               ## @POWER_SENSOR
	.comm	_power_sensor_name_templates,8,3 ## @power_sensor_name_templates
L_.str.1:                               ## @.str.1
	.asciz	"power"

	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_ibmpex_show_sensor,4,2         ## @ibmpex_show_sensor
	.no_dead_strip	_create_sensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_sensor
_create_sensor:                         ; @create_sensor
	.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	x22, x4
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _TEMP_SENSOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEMP_SENSOR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _temp_sensor_name_templates@GOTPAGE
Lloh7:
	ldr	x8, [x8, _temp_sensor_name_templates@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	sxtw	x24, w22
	ldr	x1, [x8, w22, sxtw #3]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_4:
Lloh14:
	adrp	x8, _POWER_SENSOR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POWER_SENSOR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_7
; %bb.5:
Lloh17:
	adrp	x8, _power_sensor_name_templates@GOTPAGE
Lloh18:
	ldr	x8, [x8, _power_sensor_name_templates@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	mov	x9, x22
	sxtw	x24, w9
	ldr	x1, [x8, w22, sxtw #3]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x21
	mov	x3, x23
	bl	_sprintf
	b	LBB0_8
LBB0_7:
	mov	x8, x22
	sxtw	x24, w8
LBB0_8:
	ldr	x8, [x20]
	ldr	x8, [x8, w19, sxtw #3]
	add	x1, x8, x24, lsl #5
Lloh22:
	adrp	x8, _S_IRUGO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _S_IRUGO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x1, #16]
Lloh25:
	adrp	x8, _ibmpex_show_sensor@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ibmpex_show_sensor@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x1, #24]
	stp	w19, w22, [x1]
	str	x21, [x1, #8]!
	ldr	w0, [x20, #8]
	bl	_device_create_file
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.9:
	sxtw	x8, w19
	ldr	x9, [x20]
	ldr	x8, [x9, x8, lsl #3]
	add	x8, x8, x24, lsl #5
	str	xzr, [x8, #8]
	mov	x0, x21
	bl	_kfree
LBB0_10:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TEMP_SENSOR,4,2                ; @TEMP_SENSOR
	.comm	_temp_sensor_name_templates,8,3 ; @temp_sensor_name_templates
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"temp"

	.comm	_POWER_SENSOR,4,2               ; @POWER_SENSOR
	.comm	_power_sensor_name_templates,8,3 ; @power_sensor_name_templates
l_.str.1:                               ; @.str.1
	.asciz	"power"

	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_ibmpex_show_sensor,4,2         ; @ibmpex_show_sensor
	.no_dead_strip	_create_sensor
.subsections_via_symbols
