	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pic32_gpio_irq_set_type
_pic32_gpio_irq_set_type:               ## @pic32_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	%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, %ebx
	movq	%rdi, %r14
	callq	_irqd_to_bank
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	cmpl	$130, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_8
## %bb.3:
	movq	(%r12), %rbx
	movq	_CNEN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIC32_SET
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r12), %rbx
	movq	_CNNE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIC32_CLR
	jmp	LBB0_4
LBB0_7:
	movq	(%r12), %rbx
	movq	_CNEN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIC32_SET
	jmp	LBB0_6
LBB0_5:
	movq	(%r12), %rbx
	movq	_CNEN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIC32_CLR
LBB0_6:
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r12), %rbx
	movq	_CNNE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIC32_SET
LBB0_4:
	addq	%rbx, %rax
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_writel
	movq	_PIC32_CNCON_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	(%r12), %rbx
	movq	_CNCON_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIC32_SET
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_irq_set_handler_locked
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ## @IRQ_TYPE_SENSE_MASK
	.comm	_CNEN_REG,4,2                   ## @CNEN_REG
	.comm	_CNNE_REG,4,2                   ## @CNNE_REG
	.comm	_PIC32_CNCON_EDGE,4,2           ## @PIC32_CNCON_EDGE
	.comm	_CNCON_REG,4,2                  ## @CNCON_REG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.no_dead_strip	_pic32_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 pic32_gpio_irq_set_type
_pic32_gpio_irq_set_type:               ; @pic32_gpio_irq_set_type
	.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	x22, x1
	mov	x19, x0
	bl	_irqd_to_bank
	mov	x20, x0
	ldr	w0, [x19]
	bl	_BIT
	mov	x21, x0
Lloh0:
	adrp	x8, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w22
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.3:
	ldr	x22, [x20]
Lloh3:
	adrp	x8, _CNEN_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CNEN_REG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PIC32_SET
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	ldr	x22, [x20]
Lloh6:
	adrp	x8, _CNNE_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CNNE_REG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_PIC32_CLR
	b	LBB0_7
LBB0_4:
	ldr	x22, [x20]
Lloh9:
	adrp	x8, _CNEN_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CNEN_REG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_PIC32_SET
	b	LBB0_6
LBB0_5:
	ldr	x22, [x20]
Lloh12:
	adrp	x8, _CNEN_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CNEN_REG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_PIC32_CLR
LBB0_6:
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	ldr	x22, [x20]
Lloh15:
	adrp	x8, _CNNE_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CNNE_REG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_PIC32_SET
LBB0_7:
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
Lloh18:
	adrp	x8, _PIC32_CNCON_EDGE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PIC32_CNCON_EDGE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
	ldr	x20, [x20]
Lloh21:
	adrp	x8, _CNCON_REG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CNCON_REG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_PIC32_SET
	add	x1, x0, x20
	mov	x0, x21
	bl	_writel
Lloh24:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh25:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_set_handler_locked
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ; @IRQ_TYPE_SENSE_MASK
	.comm	_CNEN_REG,4,2                   ; @CNEN_REG
	.comm	_CNNE_REG,4,2                   ; @CNNE_REG
	.comm	_PIC32_CNCON_EDGE,4,2           ; @PIC32_CNCON_EDGE
	.comm	_CNCON_REG,4,2                  ; @CNCON_REG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.no_dead_strip	_pic32_gpio_irq_set_type
.subsections_via_symbols
