	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tqmx86_gpio_irq_mask
_tqmx86_gpio_irq_mask:                  ## @tqmx86_gpio_irq_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r15d
	movq	_TQMX86_NGPO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	callq	_irq_data_get_irq_chip_data
	movl	%eax, %edi
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movq	_TQMX86_GPII_MASK@GOTPCREL(%rip), %rax
	movq	_TQMX86_GPII_BITS@GOTPCREL(%rip), %rcx
	imull	(%rcx), %r15d
	movl	(%rax), %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	movq	%r14, %rdi
	callq	_raw_spin_lock_irqsave
	movq	_TQMX86_GPIIC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_tqmx86_gpio_read
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_tqmx86_gpio_write
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_raw_spin_unlock_irqrestore     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TQMX86_NGPO,4,2                ## @TQMX86_NGPO
	.comm	_TQMX86_GPII_MASK,4,2           ## @TQMX86_GPII_MASK
	.comm	_TQMX86_GPII_BITS,4,2           ## @TQMX86_GPII_BITS
	.comm	_TQMX86_GPIIC,4,2               ## @TQMX86_GPIIC
	.no_dead_strip	_tqmx86_gpio_irq_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tqmx86_gpio_irq_mask
_tqmx86_gpio_irq_mask:                  ; @tqmx86_gpio_irq_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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TQMX86_NGPO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TQMX86_NGPO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w20, w8, w9
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x19, x0
Lloh3:
	adrp	x8, _TQMX86_GPII_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TQMX86_GPII_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TQMX86_GPII_BITS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TQMX86_GPII_BITS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w9, w9, w20
	lsl	w20, w8, w9
	bl	_raw_spin_lock_irqsave
Lloh9:
	adrp	x21, _TQMX86_GPIIC@GOTPAGE
Lloh10:
	ldr	x21, [x21, _TQMX86_GPIIC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_tqmx86_gpio_read
	bic	w1, w0, w20
	ldr	w2, [x21]
	mov	x0, x19
	bl	_tqmx86_gpio_write
	mov	x0, 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	_raw_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TQMX86_NGPO,4,2                ; @TQMX86_NGPO
	.comm	_TQMX86_GPII_MASK,4,2           ; @TQMX86_GPII_MASK
	.comm	_TQMX86_GPII_BITS,4,2           ; @TQMX86_GPII_BITS
	.comm	_TQMX86_GPIIC,4,2               ; @TQMX86_GPIIC
	.no_dead_strip	_tqmx86_gpio_irq_mask
.subsections_via_symbols
