	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf119_fan_pwm_set              ## -- Begin function gf119_fan_pwm_set
	.p2align	4, 0x90
_gf119_fan_pwm_set:                     ## @gf119_fan_pwm_set
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	(%rdi), %r12
	callq	_pwm_info
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$1, %ebx
	ja	LBB0_4
## %bb.3:
	leal	57620(,%rbx,8), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_nvkm_wr32
	leal	57624(,%rbx,8), %esi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	jmp	LBB0_6
LBB0_1:
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
	cmpl	$2, %ebx
	jne	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	movl	$131288, %esi                   ## imm = 0x200D8
	movl	$8191, %edx                     ## imm = 0x1FFF
	movl	%r15d, %ecx
	callq	_nvkm_mask
	movl	$131292, %esi                   ## imm = 0x200DC
	movl	$1073741824, %edx               ## imm = 0x40000000
LBB0_6:
	orl	%r14d, %edx
	movq	%r12, %rdi
	callq	_nvkm_wr32
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf119_fan_pwm_set              ; -- Begin function gf119_fan_pwm_set
	.p2align	2
_gf119_fan_pwm_set:                     ; @gf119_fan_pwm_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x21, x2
	ldr	x20, [x0]
	bl	_pwm_info
	tbnz	w0, #31, LBB0_7
; %bb.1:
	cmp	w0, #1
	b.hi	LBB0_3
; %bb.2:
	lsl	w22, w0, #3
	mov	w8, #57620
	add	w1, w22, w8
	mov	x0, x20
	mov	x2, x21
	bl	_nvkm_wr32
	mov	w8, #57624
	add	w1, w22, w8
	mov	w8, #-2147483648
	b	LBB0_5
LBB0_3:
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.4:
	mov	w22, #216
	movk	w22, #2, lsl #16
	mov	x0, x20
	mov	w1, #216
	movk	w1, #2, lsl #16
	mov	w2, #8191
	mov	x3, x21
	bl	_nvkm_mask
	orr	w1, w22, #0x4
	mov	w8, #1073741824
LBB0_5:
	orr	w2, w8, w19
	mov	x0, x20
	bl	_nvkm_wr32
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
