	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsp_gpio_irq_set_mask
_nsp_gpio_irq_set_mask:                 ## @nsp_gpio_irq_set_mask
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r12
	movl	(%rbx), %r15d
	movl	4(%rbx), %edi
	callq	_irq_get_trigger_type
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rcx
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %edx
	jne	LBB0_1
## %bb.2:
	movq	_NSP_GPIO_INT_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NSP_GPIO_EVENT_INT_MASK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nsp_set_bit                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_REG,4,2                        ## @REG
	.comm	_NSP_GPIO_EVENT_INT_MASK,4,2    ## @NSP_GPIO_EVENT_INT_MASK
	.comm	_NSP_GPIO_INT_MASK,4,2          ## @NSP_GPIO_INT_MASK
	.no_dead_strip	_nsp_gpio_irq_set_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsp_gpio_irq_set_mask
_nsp_gpio_irq_set_mask:                 ; @nsp_gpio_irq_set_mask
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	mov	x21, x0
	ldp	w22, w0, [x20]
	bl	_irq_get_trigger_type
Lloh0:
	adrp	x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x9, _NSP_GPIO_INT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NSP_GPIO_INT_MASK@GOTPAGEOFF]
Lloh11:
	adrp	x10, _NSP_GPIO_EVENT_INT_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NSP_GPIO_EVENT_INT_MASK@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x22
	mov	x4, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nsp_set_bit
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_REG,4,2                        ; @REG
	.comm	_NSP_GPIO_EVENT_INT_MASK,4,2    ; @NSP_GPIO_EVENT_INT_MASK
	.comm	_NSP_GPIO_INT_MASK,4,2          ; @NSP_GPIO_INT_MASK
	.no_dead_strip	_nsp_gpio_irq_set_mask
.subsections_via_symbols
