	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nointc_set_wake
_nointc_set_wake:                       ## @nointc_set_wake
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_NDS32_SR_INT_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	___nds32__mfsr
	movq	%rax, -32(%rbp)
	movl	(%r14), %edi
	movl	$1, %edx
	movl	%edi, %ecx
	shll	%cl, %edx
	movslq	%edx, %rcx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	testq	%rcx, %rax
	setne	%dl
	leaq	_nointc_set_wake.irq_orig_bit(%rip), %rsi
	callq	___assign_bit
	movl	(%r14), %edi
	leaq	-32(%rbp), %rsi
	movl	$1, %edx
	callq	___assign_bit
	movl	(%r14), %edi
	movq	_wake_mask@GOTPCREL(%rip), %rsi
	movl	$1, %edx
	jmp	LBB0_5
LBB0_2:
	testq	%rcx, _nointc_set_wake.irq_orig_bit(%rip)
	jne	LBB0_4
## %bb.3:
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	___assign_bit
	movl	(%r14), %edi
LBB0_4:
	movq	_wake_mask@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	callq	___assign_bit
	movl	(%r14), %edi
	leaq	_nointc_set_wake.irq_orig_bit(%rip), %rsi
	xorl	%edx, %edx
LBB0_5:
	callq	___assign_bit
	movq	-32(%rbp), %rdi
	movl	(%r15), %esi
	callq	___nds32__mtsr_dsb
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NDS32_SR_INT_MASK,4,2          ## @NDS32_SR_INT_MASK
.zerofill __DATA,__bss,_nointc_set_wake.irq_orig_bit,8,3 ## @nointc_set_wake.irq_orig_bit
	.comm	_wake_mask,8,3                  ## @wake_mask
	.no_dead_strip	_nointc_set_wake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nointc_set_wake
_nointc_set_wake:                       ; @nointc_set_wake
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _NDS32_SR_INT_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NDS32_SR_INT_MASK@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	___nds32__mfsr
	mov	x8, x0
	str	x0, [sp, #8]
	ldr	w0, [x19]
	mov	w9, #1
	lsl	w9, w9, w0
	sxtw	x9, w9
	cbz	w20, LBB0_2
; %bb.1:
	tst	x8, x9
	cset	w2, ne
Lloh2:
	adrp	x1, _nointc_set_wake.irq_orig_bit@PAGE
Lloh3:
	add	x1, x1, _nointc_set_wake.irq_orig_bit@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	___assign_bit
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #1
	bl	___assign_bit
	ldr	w0, [x19]
Lloh4:
	adrp	x1, _wake_mask@GOTPAGE
Lloh5:
	ldr	x1, [x1, _wake_mask@GOTPAGEOFF]
	mov	w2, #1
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _nointc_set_wake.irq_orig_bit@PAGE
Lloh7:
	ldr	x8, [x8, _nointc_set_wake.irq_orig_bit@PAGEOFF]
	tst	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x1, sp, #8
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w2, #0
	bl	___assign_bit
	ldr	w0, [x19]
LBB0_4:
Lloh8:
	adrp	x1, _wake_mask@GOTPAGE
Lloh9:
	ldr	x1, [x1, _wake_mask@GOTPAGEOFF]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w2, #0
	bl	___assign_bit
	ldr	w0, [x19]
Lloh10:
	adrp	x1, _nointc_set_wake.irq_orig_bit@PAGE
Lloh11:
	add	x1, x1, _nointc_set_wake.irq_orig_bit@PAGEOFF
	mov	w2, #0
LBB0_5:
	bl	___assign_bit
	ldr	x0, [sp, #8]
	ldr	w1, [x21]
	bl	___nds32__mtsr_dsb
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NDS32_SR_INT_MASK,4,2          ; @NDS32_SR_INT_MASK
.zerofill __DATA,__bss,_nointc_set_wake.irq_orig_bit,8,3 ; @nointc_set_wake.irq_orig_bit
	.comm	_wake_mask,8,3                  ; @wake_mask
	.no_dead_strip	_nointc_set_wake
.subsections_via_symbols
