	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpd_pocket_fan_probe
_gpd_pocket_fan_probe:                  ## @gpd_pocket_fan_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_temp_limits@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	(%rdi,%rbx,4), %edx
	leal	-70001(%rdx), %eax
	cmpl	$-30002, %eax                   ## imm = 0x8ACE
	jbe	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_7:
	movq	_hysteresis@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	-10001(%rdx), %eax
	cmpl	$-9002, %eax                    ## imm = 0xDCD6
	ja	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_9:
	movq	_speed_on_ac@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	js	LBB0_11
## %bb.10:
	movq	_MAX_SPEED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jg	LBB0_11
## %bb.12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movq	%rax, %r14
	movq	%r15, 8(%rax)
	movq	%rax, %rdi
	addq	$40, %rdi
	movq	_gpd_pocket_fan_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	L_.str.3(%rip), %rdi
	callq	_thermal_zone_get_zone_by_name
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:
	leaq	L_.str.4(%rip), %rdi
	callq	_thermal_zone_get_zone_by_name
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
LBB0_16:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_6
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
LBB0_6:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_18:
	movq	8(%r14), %rdi
	movq	_GPIOD_ASIS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_devm_gpiod_get_index
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	16(%r14), %rdi
	jmp	LBB0_20
LBB0_21:
	movq	8(%r14), %rdi
	movl	(%rbx), %ecx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_devm_gpiod_get_index
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	(%r14), %rdi
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_23:
	movq	%r14, %rdi
	callq	_gpd_pocket_fan_force_update
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_temp_limits,8,3                ## @temp_limits
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid temp-limit %d (must be between 40000 and 70000)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_hysteresis,4,2                 ## @hysteresis
L_.str.1:                               ## @.str.1
	.asciz	"Invalid hysteresis %d (must be between 1000 and 10000)\n"

	.comm	_speed_on_ac,4,2                ## @speed_on_ac
	.comm	_MAX_SPEED,4,2                  ## @MAX_SPEED
L_.str.2:                               ## @.str.2
	.asciz	"Invalid speed_on_ac %d (must be between 0 and 3)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gpd_pocket_fan_worker,4,2      ## @gpd_pocket_fan_worker
L_.str.3:                               ## @.str.3
	.asciz	"soc_dts0"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.4:                               ## @.str.4
	.asciz	"soc_dts1"

	.comm	_GPIOD_ASIS,4,2                 ## @GPIOD_ASIS
	.no_dead_strip	_gpd_pocket_fan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpd_pocket_fan_probe
_gpd_pocket_fan_probe:                  ; @gpd_pocket_fan_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	x19, x0
Lloh0:
	adrp	x20, _temp_limits@GOTPAGE
Lloh1:
	ldr	x20, [x20, _temp_limits@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
	mov	w22, #61071
	movk	w22, #65534, lsl #16
	mov	w23, #-30002
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w2, [x0, x21, lsl #2]
	add	w8, w2, w22
	cmp	w8, w23
	b.ls	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
Lloh2:
	adrp	x8, _hysteresis@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hysteresis@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w8, #-10001
	mov	w9, #-9002
	add	w8, w2, w8
	cmp	w8, w9
	b.hi	LBB0_6
; %bb.5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_6:
Lloh7:
	adrp	x8, _speed_on_ac@GOTPAGE
Lloh8:
	ldr	x8, [x8, _speed_on_ac@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	tbnz	w2, #31, LBB0_13
; %bb.7:
Lloh10:
	adrp	x8, _MAX_SPEED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_SPEED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w2, w8
	b.gt	LBB0_13
; %bb.8:
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.9:
	mov	x20, x0
	str	x19, [x0, #8]
	add	x0, x0, #40
Lloh16:
	adrp	x8, _gpd_pocket_fan_worker@GOTPAGE
Lloh17:
	ldr	x8, [x8, _gpd_pocket_fan_worker@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_thermal_zone_get_zone_by_name
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbnz	x0, LBB0_11
; %bb.10:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_thermal_zone_get_zone_by_name
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_18
LBB0_11:
Lloh23:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_dev_err
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
LBB0_17:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_18:
	ldr	x0, [x20, #8]
Lloh33:
	adrp	x21, _GPIOD_ASIS@GOTPAGE
Lloh34:
	ldr	x21, [x21, _GPIOD_ASIS@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x1, #0
	mov	w2, #0
	bl	_devm_gpiod_get_index
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x0, [x20, #16]
	b	LBB0_22
LBB0_20:
	ldr	x0, [x20, #8]
	ldr	w3, [x21]
	mov	x1, #0
	mov	w2, #1
	bl	_devm_gpiod_get_index
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.21:
	ldr	x0, [x20]
LBB0_22:
	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
LBB0_23:
	mov	x0, x20
	bl	_gpd_pocket_fan_force_update
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_temp_limits,8,3                ; @temp_limits
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid temp-limit %d (must be between 40000 and 70000)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_hysteresis,4,2                 ; @hysteresis
l_.str.1:                               ; @.str.1
	.asciz	"Invalid hysteresis %d (must be between 1000 and 10000)\n"

	.comm	_speed_on_ac,4,2                ; @speed_on_ac
	.comm	_MAX_SPEED,4,2                  ; @MAX_SPEED
l_.str.2:                               ; @.str.2
	.asciz	"Invalid speed_on_ac %d (must be between 0 and 3)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gpd_pocket_fan_worker,4,2      ; @gpd_pocket_fan_worker
l_.str.3:                               ; @.str.3
	.asciz	"soc_dts0"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.4:                               ; @.str.4
	.asciz	"soc_dts1"

	.comm	_GPIOD_ASIS,4,2                 ; @GPIOD_ASIS
	.no_dead_strip	_gpd_pocket_fan_probe
.subsections_via_symbols
