	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_en_pwm_fan
_npcm7xx_en_pwm_fan:                    ## @npcm7xx_en_pwm_fan
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_1
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r14), %rax
	movq	-40(%rbp), %rsi
	movl	$1, (%rax,%rsi,4)
	movq	_NPCM7XX_PWM_CMR_DEFAULT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_npcm7xx_pwm_config_set
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_count_u8_elems
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	movq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%eax, %r8d
	callq	_npcm7xx_create_pwm_cooling
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_15
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_count_u8_elems
	testl	%eax, %eax
	jle	LBB0_4
## %bb.6:
	movl	%eax, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movl	%r12d, %ecx
	callq	_of_property_read_u8_array
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	8(%r14), %rdx
	movq	16(%r14), %rcx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	cmpl	$1, %r12d
	jne	LBB0_11
## %bb.10:
	xorl	%edi, %edi
	jmp	LBB0_13
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_11:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	movq	_FAN_INIT@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r15,%rdi,4), %rsi
	movl	$1, (%rdx,%rsi,4)
	movl	(%r10), %ebx
	movl	%ebx, (%rcx,%rsi,4)
	movslq	4(%r15,%rdi,4), %rsi
	movl	$1, (%rdx,%rsi,4)
	movl	(%r10), %ebx
	movl	%ebx, (%rcx,%rsi,4)
	addq	$2, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_12
LBB0_13:
	testb	$1, %r8b
	je	LBB0_15
## %bb.14:
	movslq	(%r15,%rdi,4), %rsi
	movl	$1, (%rdx,%rsi,4)
	movq	_FAN_INIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rcx,%rsi,4)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_NPCM7XX_PWM_CMR_DEFAULT_NUM,4,2 ## @NPCM7XX_PWM_CMR_DEFAULT_NUM
L_.str.1:                               ## @.str.1
	.asciz	"cooling-levels"

L_.str.2:                               ## @.str.2
	.asciz	"fan-tach-ch"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FAN_INIT,4,2                   ## @FAN_INIT
	.no_dead_strip	_npcm7xx_en_pwm_fan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm7xx_en_pwm_fan
_npcm7xx_en_pwm_fan:                    ; @npcm7xx_en_pwm_fan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_2
LBB0_1:
	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
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	x8, [x19]
	ldr	x1, [sp, #8]
	mov	w9, #1
	str	w9, [x8, x1, lsl #2]
Lloh2:
	adrp	x8, _NPCM7XX_PWM_CMR_DEFAULT_NUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NPCM7XX_PWM_CMR_DEFAULT_NUM@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_npcm7xx_pwm_config_set
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_of_property_count_u8_elems
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x4, x0
	ldr	x3, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_npcm7xx_create_pwm_cooling
	cbnz	w0, LBB0_1
LBB0_4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_of_property_count_u8_elems
	cmp	w0, #0
	b.le	LBB0_10
; %bb.5:
	mov	x22, x0
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #4
	bl	_devm_kcalloc
	cbz	x0, LBB0_11
; %bb.6:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_of_property_read_u8_array
	cbnz	w0, LBB0_1
; %bb.7:
	ldp	x8, x9, [x19, #8]
	mov	w10, w22
	mov	w11, #1
Lloh14:
	adrp	x12, _FAN_INIT@GOTPAGE
Lloh15:
	ldr	x12, [x12, _FAN_INIT@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x13, [x21], #4
	lsl	x13, x13, #2
	str	w11, [x8, x13]
	ldr	w14, [x12]
	str	w14, [x9, x13]
	subs	x10, x10, #1
	b.ne	LBB0_8
; %bb.9:
	mov	w0, #0
	b	LBB0_1
LBB0_10:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_NPCM7XX_PWM_CMR_DEFAULT_NUM,4,2 ; @NPCM7XX_PWM_CMR_DEFAULT_NUM
l_.str.1:                               ; @.str.1
	.asciz	"cooling-levels"

l_.str.2:                               ; @.str.2
	.asciz	"fan-tach-ch"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FAN_INIT,4,2                   ; @FAN_INIT
	.no_dead_strip	_npcm7xx_en_pwm_fan
.subsections_via_symbols
