	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_gpio_irq_type
_omap_gpio_irq_type:                    ## @omap_gpio_irq_type
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_omap_irq_data_get_bank
	movq	%rax, %r12
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%r15d, %eax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r14), %r13d
	movq	8(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
LBB0_4:
	movq	%r12, %rdi
	callq	_raw_spin_lock_irqsave
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_omap_set_gpio_triggering
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_raw_spin_unlock_irqrestore
	jmp	LBB0_11
LBB0_3:
	movq	_IRQ_TYPE_LEVEL_LOW@GOTPCREL(%rip), %rax
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	jne	LBB0_1
	jmp	LBB0_4
LBB0_6:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_omap_gpio_init_irq
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_omap_gpio_is_input
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_raw_spin_unlock_irqrestore
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.7:
	movq	_IRQ_TYPE_LEVEL_LOW@GOTPCREL(%rip), %rax
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_9
## %bb.8:
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_irq_set_handler_locked
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%ebx, %ebx
	testl	%r15d, %ecx
	je	LBB0_11
## %bb.10:
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_irq_set_handler_locked
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ## @IRQ_TYPE_SENSE_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ## @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.no_dead_strip	_omap_gpio_irq_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_gpio_irq_type
_omap_gpio_irq_type:                    ; @omap_gpio_irq_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_omap_irq_data_get_bank
Lloh0:
	adrp	x8, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w20, w8
	b.eq	LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_2:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x21, x0
	ldr	w22, [x19]
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_raw_spin_lock_irqsave
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_omap_set_gpio_triggering
	cbz	w0, LBB0_7
; %bb.5:
	mov	x23, x0
	mov	x0, x21
	bl	_raw_spin_unlock_irqrestore
	b	LBB0_2
LBB0_6:
Lloh6:
	adrp	x8, _IRQ_TYPE_LEVEL_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.ne	LBB0_1
	b	LBB0_4
LBB0_7:
	mov	x0, x21
	mov	x1, x22
	bl	_omap_gpio_init_irq
	mov	x0, x21
	mov	x1, x22
	bl	_omap_gpio_is_input
	mov	x22, x0
	mov	x0, x21
	bl	_raw_spin_unlock_irqrestore
	cbz	w22, LBB0_1
; %bb.8:
Lloh12:
	adrp	x8, _IRQ_TYPE_LEVEL_LOW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_LOW@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh19:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_13
; %bb.11:
Lloh26:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh27:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_set_handler_locked
LBB0_13:
	mov	w23, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ; @IRQ_TYPE_SENSE_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ; @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.no_dead_strip	_omap_gpio_irq_type
.subsections_via_symbols
