	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_gpio_unmask_irq
_omap_gpio_unmask_irq:                  ## @omap_gpio_unmask_irq
	.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
	movq	%rdi, %rbx
	callq	_omap_irq_data_get_bank
	movq	%rax, %r12
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_irqd_get_trigger_type
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_raw_spin_lock_irqsave
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_omap_set_gpio_irqenable
	movq	8(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rax
	movq	_IRQ_TYPE_LEVEL_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_omap_clear_gpio_irqstatus
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_omap_set_gpio_triggering
LBB0_6:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_raw_spin_unlock_irqrestore     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ## @IRQ_TYPE_LEVEL_LOW
	.no_dead_strip	_omap_gpio_unmask_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_gpio_unmask_irq
_omap_gpio_unmask_irq:                  ; @omap_gpio_unmask_irq
	.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	x21, x0
	bl	_omap_irq_data_get_bank
	mov	x19, x0
	ldr	w20, [x21]
	mov	x0, x21
	bl	_irqd_get_trigger_type
	mov	x21, x0
	mov	x0, x19
	bl	_raw_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_omap_set_gpio_irqenable
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IRQ_TYPE_LEVEL_LOW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQ_TYPE_LEVEL_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_omap_clear_gpio_irqstatus
LBB0_4:
	cbz	w21, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_omap_set_gpio_triggering
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ; @IRQ_TYPE_LEVEL_LOW
	.no_dead_strip	_omap_gpio_unmask_irq
.subsections_via_symbols
