	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_therm_fan_sense           ## -- Begin function nvkm_therm_fan_sense
	.p2align	4, 0x90
_nvkm_therm_fan_sense:                  ## @nvkm_therm_fan_sense
	.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	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movq	(%r12), %rax
	movl	4(%rax), %eax
	movq	_DCB_GPIO_UNUSED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	movq	16(%r12), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_nvkm_timer_read
	movl	%eax, %r13d
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	xorl	%r14d, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_nvkm_gpio_get
	movl	%eax, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvkm_timer_read
	subl	%r13d, %eax
	cmpl	$250000000, %eax                ## imm = 0xEE6B280
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_nvkm_gpio_get
	cmpl	%eax, %r15d
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvkm_timer_read
	movl	%eax, %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %r14d
	jg	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	movl	%ebx, %r15d
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvkm_timer_read
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvkm_timer_read
	subl	%r13d, %eax
	movl	$-129542144, %ebx               ## imm = 0xF8475800
	movl	$-129542144, %edi               ## imm = 0xF8475800
	movl	%eax, %esi
	callq	_do_div
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_GPIO_UNUSED,4,2            ## @DCB_GPIO_UNUSED
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_therm_fan_sense           ; -- Begin function nvkm_therm_fan_sense
	.p2align	2
_nvkm_therm_fan_sense:                  ; @nvkm_therm_fan_sense
	.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, x0
	ldr	x8, [x0, #8]
	ldr	x1, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	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
	br	x1
LBB0_2:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
Lloh0:
	adrp	x9, _DCB_GPIO_UNUSED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCB_GPIO_UNUSED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_13
LBB0_4:
	ldr	x8, [x19, #16]
	ldp	x21, x20, [x8]
	mov	x0, x20
	bl	_nvkm_timer_read
	mov	x22, x0
	ldr	x8, [x19]
	ldp	w3, w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_nvkm_gpio_get
	mov	x23, x0
	mov	w25, #0
	mov	w26, #45696
	movk	w26, #3814, lsl #16
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_nvkm_timer_read
	sub	w8, w0, w22
	cmp	w8, w26
	b.ge	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	ldr	x8, [x19]
	ldp	w3, w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_nvkm_gpio_get
	cmp	w23, w0
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	cbnz	w22, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_nvkm_timer_read
	mov	x22, x0
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w25, #3
	b.gt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w25, w25, #1
	mov	x23, x24
	b	LBB0_5
LBB0_11:
	mov	x0, x20
	bl	_nvkm_timer_read
	mov	w19, #0
	b	LBB0_13
LBB0_12:
	mov	w19, #22528
	movk	w19, #63559, lsl #16
	mov	x0, x20
	bl	_nvkm_timer_read
	sub	w1, w0, w22
	mov	w0, #22528
	movk	w0, #63559, lsl #16
	bl	_do_div
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_GPIO_UNUSED,4,2            ; @DCB_GPIO_UNUSED
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
