	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netwinder_get_fan
_netwinder_get_fan:                     ## @netwinder_get_fan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_system_rev@GOTPCREL(%rip), %rax
	movl	$61440, %ecx                    ## imm = 0xF000
	andl	(%rax), %ecx
	cmpl	$16384, %ecx                    ## imm = 0x4000
	jne	LBB0_2
## %bb.1:
	movq	_FAN_ALWAYS_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	callq	_nw_gpio_read
	movq	_GPIO_FAN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_FAN_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_FAN_ON@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_system_rev,4,2                 ## @system_rev
	.comm	_FAN_ALWAYS_ON,4,2              ## @FAN_ALWAYS_ON
	.comm	_GPIO_FAN,4,2                   ## @GPIO_FAN
	.comm	_FAN_ON,4,2                     ## @FAN_ON
	.comm	_FAN_OFF,4,2                    ## @FAN_OFF
	.no_dead_strip	_netwinder_get_fan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netwinder_get_fan
_netwinder_get_fan:                     ; @netwinder_get_fan
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _system_rev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _system_rev@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, #0xf000
	cmp	w8, #4, lsl #12                 ; =16384
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _FAN_ALWAYS_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FAN_ALWAYS_ON@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	bl	_nw_gpio_read
Lloh5:
	adrp	x8, _GPIO_FAN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIO_FAN@GOTPAGEOFF]
Lloh7:
	adrp	x9, _FAN_ON@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FAN_ON@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x10, _FAN_OFF@GOTPAGE
Lloh11:
	ldr	x10, [x10, _FAN_OFF@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_system_rev,4,2                 ; @system_rev
	.comm	_FAN_ALWAYS_ON,4,2              ; @FAN_ALWAYS_ON
	.comm	_GPIO_FAN,4,2                   ; @GPIO_FAN
	.comm	_FAN_ON,4,2                     ; @FAN_ON
	.comm	_FAN_OFF,4,2                    ; @FAN_OFF
	.no_dead_strip	_netwinder_get_fan
.subsections_via_symbols
