	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns2501_get_hw_state
_ns2501_get_hw_state:                   ## @ns2501_get_hw_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_NS2501_REG8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1(%rbp), %rdx
	callq	_ns2501_readb
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_NS2501_8_PD@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	xorl	%eax, %eax
	testb	%cl, -1(%rbp)
	setne	%al
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NS2501_REG8,4,2                ## @NS2501_REG8
	.comm	_NS2501_8_PD,1,0                ## @NS2501_8_PD
	.no_dead_strip	_ns2501_get_hw_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns2501_get_hw_state
_ns2501_get_hw_state:                   ; @ns2501_get_hw_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _NS2501_REG8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NS2501_REG8@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #1
	bl	_ns2501_readb
	cbz	w0, LBB0_2
; %bb.1:
	ldurb	w8, [x29, #-1]
Lloh3:
	adrp	x9, _NS2501_8_PD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NS2501_8_PD@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w8
	cset	w0, ne
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NS2501_REG8,4,2                ; @NS2501_REG8
	.comm	_NS2501_8_PD,1,0                ; @NS2501_8_PD
	.no_dead_strip	_ns2501_get_hw_state
.subsections_via_symbols
