	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf119_fan_pwm_get              ## -- Begin function gf119_fan_pwm_get
	.p2align	4, 0x90
_gf119_fan_pwm_get:                     ## @gf119_fan_pwm_get
	.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	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	(%rdi), %r12
	callq	_pwm_info
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	cmpl	$1, %ebx
	ja	LBB0_5
## %bb.2:
	leal	54800(,%r13,4), %esi
	movq	%r12, %rdi
	callq	_nvkm_rd32
	testb	$64, %al
	je	LBB0_7
## %bb.3:
	leal	57620(,%rbx,8), %esi
	movq	%r12, %rdi
	callq	_nvkm_rd32
	movl	%eax, (%r15)
	leal	57624(,%rbx,8), %esi
	movq	%r12, %rdi
	callq	_nvkm_rd32
	jmp	LBB0_4
LBB0_5:
	cmpl	$2, %ebx
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movl	$131288, %esi                   ## imm = 0x200D8
	callq	_nvkm_rd32
	andl	$8191, %eax                     ## imm = 0x1FFF
	movl	%eax, (%r15)
	movq	%r12, %rdi
	movl	$131292, %esi                   ## imm = 0x200DC
	callq	_nvkm_rd32
	andl	$8191, %eax                     ## imm = 0x1FFF
LBB0_4:
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf119_fan_pwm_get              ; -- Begin function gf119_fan_pwm_get
	.p2align	2
_gf119_fan_pwm_get:                     ; @gf119_fan_pwm_get
	.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, x3
	mov	x21, x2
	mov	x23, x1
	ldr	x20, [x0]
	bl	_pwm_info
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
	cmp	w22, #1
	b.hi	LBB0_4
; %bb.2:
	mov	w8, #54800
	add	w1, w8, w23, lsl #2
	mov	x0, x20
	bl	_nvkm_rd32
	tbz	w0, #6, LBB0_6
; %bb.3:
	lsl	w22, w22, #3
	mov	w8, #57620
	add	w1, w22, w8
	mov	x0, x20
	bl	_nvkm_rd32
	str	w0, [x21]
	mov	w8, #57624
	add	w1, w22, w8
	mov	x0, x20
	bl	_nvkm_rd32
	mov	w22, #0
	str	w0, [x19]
	b	LBB0_7
LBB0_4:
	cmp	w22, #2
	b.ne	LBB0_6
; %bb.5:
	mov	w22, #216
	movk	w22, #2, lsl #16
	mov	x0, x20
	mov	w1, #216
	movk	w1, #2, lsl #16
	bl	_nvkm_rd32
	and	w8, w0, #0x1fff
	str	w8, [x21]
	orr	w1, w22, #0x4
	mov	x0, x20
	bl	_nvkm_rd32
	mov	w22, #0
	and	w8, w0, #0x1fff
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
