	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_fan_min
_set_fan_min:                           ## @set_fan_min
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	movq	%rax, %r13
	leaq	24(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_FAN_DIV_FROM_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_FAN_TO_REG
	cmpq	$255, %rax
	jle	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movq	(%r15), %rdi
	movl	(%rcx,%rdi,4), %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	notl	%edx
	testb	$96, %dl
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rsi
	shrq	%rsi
	movq	8(%rbx), %rdx
	sarl	(%rdx,%rdi,4)
	movl	(%rcx,%rdi,4), %edx
	addl	$32, %edx
	movl	%edx, (%rcx,%rdi,4)
	cmpq	$511, %rax                      ## imm = 0x1FF
	movq	%rsi, %rax
	ja	LBB0_3
## %bb.5:
	movq	%rsi, %rax
	jmp	LBB0_6
LBB0_1:
	movq	(%r15), %rdi
LBB0_6:
	cmpq	$255, %rax
	movl	$255, %ecx
	cmovlq	%rax, %rcx
	movq	16(%rbx), %rax
	movl	%ecx, (%rax,%rdi,4)
	movq	_LD_FAN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_NO_BANK@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	callq	_PC87360_REG_FAN_MIN
	movq	16(%rbx), %rcx
	movq	(%r15), %rdx
	movl	(%rcx,%rdx,4), %r8d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_pc87360_write_value
	movq	_LD_FAN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r12), %r13d
	movq	(%r15), %rdi
	callq	_PC87360_REG_FAN_STATUS
	movq	(%rbx), %rcx
	movq	(%r15), %rdx
	movl	$249, %r8d
	andl	(%rcx,%rdx,4), %r8d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_pc87360_write_value
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LD_FAN,4,2                     ## @LD_FAN
	.comm	_NO_BANK,4,2                    ## @NO_BANK
	.no_dead_strip	_set_fan_min
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_fan_min
_set_fan_min:                           ; @set_fan_min
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x20, x0
	mov	x0, x21
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	mov	x23, x0
	add	x22, x21, #24
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_FAN_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x23
	bl	_FAN_TO_REG
	mov	x8, x0
	cmp	x0, #255
	b.le	LBB0_5
; %bb.1:
	ldr	x9, [x21]
	ldr	x0, [x20]
	ldr	w11, [x9, x0, lsl #2]
	lsl	x10, x0, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mvn	w11, w11
	tst	w11, #0x60
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x21, #8]
	ldr	w12, [x11, x10]
	asr	w12, w12, #1
	str	w12, [x11, x10]
	ldr	w11, [x9, x10]
	lsr	x12, x8, #1
	add	w11, w11, #32
	str	w11, [x9, x10]
	cmp	x8, #511
	mov	x8, x12
	b.hi	LBB0_2
; %bb.4:
	mov	x8, x12
	b	LBB0_6
LBB0_5:
	ldr	x0, [x20]
LBB0_6:
	mov	w9, #255
	cmp	x8, #255
	csel	x8, x8, x9, lt
	ldr	x9, [x21, #16]
	str	w8, [x9, x0, lsl #2]
Lloh0:
	adrp	x25, _LD_FAN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LD_FAN@GOTPAGEOFF]
	ldr	w23, [x25]
Lloh2:
	adrp	x26, _NO_BANK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _NO_BANK@GOTPAGEOFF]
	ldr	w24, [x26]
	bl	_PC87360_REG_FAN_MIN
	mov	x3, x0
	ldr	x8, [x21, #16]
	ldr	x9, [x20]
	ldr	w4, [x8, x9, lsl #2]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_pc87360_write_value
	ldr	w23, [x25]
	ldr	w24, [x26]
	ldr	x0, [x20]
	bl	_PC87360_REG_FAN_STATUS
	mov	x3, x0
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
	mov	w9, #249
	and	w4, w8, w9
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_pc87360_write_value
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LD_FAN,4,2                     ; @LD_FAN
	.comm	_NO_BANK,4,2                    ; @NO_BANK
	.no_dead_strip	_set_fan_min
.subsections_via_symbols
