	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function altera_gpio_irq_set_type
_altera_gpio_irq_set_type:              ## @altera_gpio_irq_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_irq_data_get_irq_chip_data
	movl	%eax, %edi
	callq	_gpiochip_get_data
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_3
## %bb.1:
	movq	_handle_bad_irq@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	cmpl	%ebx, (%rax)
	jne	LBB0_7
## %bb.4:
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_handle_bad_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_irq_set_handler_locked
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_irq_set_handler_locked
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_handle_bad_irq,4,2             ## @handle_bad_irq
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_altera_gpio_irq_set_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function altera_gpio_irq_set_type
_altera_gpio_irq_set_type:              ; @altera_gpio_irq_set_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
Lloh0:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _handle_bad_irq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _handle_bad_irq@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	w8, [x0]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _handle_bad_irq@GOTPAGE
Lloh11:
	ldr	x8, [x8, _handle_bad_irq@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_set_handler_locked
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
Lloh16:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_set_handler_locked
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_handle_bad_irq,4,2             ; @handle_bad_irq
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_altera_gpio_irq_set_type
.subsections_via_symbols
