	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_fan_of_get_cooling_data
_pwm_fan_of_get_cooling_data:           ## @pwm_fan_of_get_cooling_data
	.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	(%rdi), %r13
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_of_find_property
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_property_count_u32_elems
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_5
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	movl	%r12d, %ecx
	callq	_of_property_read_u32_array
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	testl	%r12d, %r12d
	cmovnel	%r12d, %ebx
	jmp	LBB0_13
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_7:
	movq	(%r14), %rax
	movq	_MAX_PWM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	%r12d, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rcx
	cmpq	%r8, %rcx
	jg	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdx
	cmpq	%rdx, %rsi
	jne	LBB0_8
## %bb.10:
	decl	%r12d
	movl	%r12d, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %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	"cooling-levels"

L_.str.1:                               ## @.str.1
	.asciz	"Wrong data!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Property 'cooling-levels' cannot be read!\n"

	.comm	_MAX_PWM,8,3                    ## @MAX_PWM
L_.str.3:                               ## @.str.3
	.asciz	"PWM fan state[%d]:%d > %d\n"

	.no_dead_strip	_pwm_fan_of_get_cooling_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_fan_of_get_cooling_data
_pwm_fan_of_get_cooling_data:           ; @pwm_fan_of_get_cooling_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_of_find_property
	cbz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_of_property_count_u32_elems
	mov	x21, x0
	cmp	w0, #0
	b.le	LBB0_6
; %bb.2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.3:
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x21
	bl	_of_property_read_u32_array
	cbz	w0, LBB0_8
; %bb.4:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_5:
	mov	w22, #0
	b	LBB0_14
LBB0_6:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w22, w21, w8, ne
	b	LBB0_14
LBB0_7:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	mov	x8, #0
	ldr	x10, [x20]
Lloh18:
	adrp	x9, _MAX_PWM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAX_PWM@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	mov	w11, w21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x8, lsl #3]
	cmp	x12, x9
	b.gt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #1
	cmp	x11, x8
	b.ne	LBB0_9
; %bb.11:
	mov	w22, #0
	sub	w8, w21, #1
	str	w8, [x20, #8]
	b	LBB0_14
LBB0_12:
	stp	x12, x9, [sp, #8]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cooling-levels"

l_.str.1:                               ; @.str.1
	.asciz	"Wrong data!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Property 'cooling-levels' cannot be read!\n"

	.comm	_MAX_PWM,8,3                    ; @MAX_PWM
l_.str.3:                               ; @.str.3
	.asciz	"PWM fan state[%d]:%d > %d\n"

	.no_dead_strip	_pwm_fan_of_get_cooling_data
.subsections_via_symbols
