	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max31790_fan_is_visible
_max31790_fan_is_visible:               ## @max31790_fan_is_visible
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %r8d
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rcx
	movq	_NR_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edx, %eax
	cltd
	idivl	%edi
	movslq	%edx, %rax
	movl	(%rcx,%rax,4), %edx
	leal	-129(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.5:
	movl	$292, %eax                      ## imm = 0x124
	cmpl	%r8d, %edi
	jg	LBB0_7
## %bb.6:
	movq	_MAX31790_FAN_CFG_TACH_INPUT@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movl	$292, %eax                      ## imm = 0x124
	cmovel	%edx, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	cmpl	$128, %esi
	jne	LBB0_7
## %bb.2:
	cmpl	%r8d, %edi
	jle	LBB0_7
## %bb.3:
	movq	_MAX31790_FAN_CFG_TACH_INPUT@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_4
LBB0_7:
	popq	%rbp
	retq
LBB0_4:
	movl	$420, %eax                      ## imm = 0x1A4
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_CHANNEL,4,2                 ## @NR_CHANNEL
	.comm	_MAX31790_FAN_CFG_TACH_INPUT,4,2 ## @MAX31790_FAN_CFG_TACH_INPUT
	.no_dead_strip	_max31790_fan_is_visible
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max31790_fan_is_visible
_max31790_fan_is_visible:               ; @max31790_fan_is_visible
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NR_CHANNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NR_CHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w10, w2, w9
	msub	w10, w10, w9, w2
	ldr	w8, [x8, w10, sxtw #2]
	sub	w10, w1, #129
	cmp	w10, #2
	b.hs	LBB0_3
; %bb.1:
	mov	w0, #292
	cmp	w9, w2
	b.gt	LBB0_7
; %bb.2:
Lloh3:
	adrp	x9, _MAX31790_FAN_CFG_TACH_INPUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX31790_FAN_CFG_TACH_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	csel	w0, wzr, w0, eq
	ret
LBB0_3:
	cmp	w1, #128
	b.ne	LBB0_6
; %bb.4:
	cmp	w9, w2
	b.le	LBB0_6
; %bb.5:
Lloh6:
	adrp	x9, _MAX31790_FAN_CFG_TACH_INPUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX31790_FAN_CFG_TACH_INPUT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	ret
LBB0_8:
	mov	w0, #420
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_CHANNEL,4,2                 ; @NR_CHANNEL
	.comm	_MAX31790_FAN_CFG_TACH_INPUT,4,2 ; @MAX31790_FAN_CFG_TACH_INPUT
	.no_dead_strip	_max31790_fan_is_visible
.subsections_via_symbols
