	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bcm2835_gpio_irq_set_type_enabled
___bcm2835_gpio_irq_set_type_enabled:   ## @__bcm2835_gpio_irq_set_type_enabled
	.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	%edx, %ebx
	leal	-128(%rbx), %eax
	cmpl	$5, %eax
	ja	LBB0_4
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	(%r12), %rax
	movl	%r15d, %r13d
	xorl	%r14d, %r14d
	cmpl	%ebx, (%rax,%r13,4)
	je	LBB0_25
## %bb.3:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_bcm2835_gpio_irq_config
	movq	(%r12), %rax
	movl	%ebx, (%rax,%r13,4)
	jmp	LBB0_24
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_25
LBB0_5:
	movq	(%r12), %rax
	movl	%r15d, %ebx
	xorl	%r14d, %r14d
	cmpl	$128, (%rax,%rbx,4)
	je	LBB0_25
## %bb.6:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_bcm2835_gpio_irq_config
	movq	(%r12), %rax
	movl	$128, (%rax,%rbx,4)
	jmp	LBB0_25
LBB0_7:
	movq	(%r12), %rax
	movl	%r15d, %ebx
	movl	(%rax,%rbx,4), %ecx
	cmpl	$131, %ecx
	je	LBB0_17
## %bb.8:
	cmpl	$133, %ecx
	jne	LBB0_18
## %bb.9:
	movl	$132, (%rax,%rbx,4)
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_bcm2835_gpio_irq_config
	movq	(%r12), %rax
	movl	$131, (%rax,%rbx,4)
	jmp	LBB0_25
LBB0_10:
	movq	(%r12), %rax
	movl	%r15d, %ebx
	movl	(%rax,%rbx,4), %ecx
	xorl	%r14d, %r14d
	cmpl	$133, %ecx
	je	LBB0_25
## %bb.11:
	cmpl	$132, %ecx
	je	LBB0_21
## %bb.12:
	cmpl	$131, %ecx
	jne	LBB0_23
## %bb.13:
	movl	$132, (%rax,%rbx,4)
	jmp	LBB0_22
LBB0_14:
	movq	(%r12), %rax
	movl	%r15d, %ebx
	movl	(%rax,%rbx,4), %ecx
	cmpl	$132, %ecx
	je	LBB0_17
## %bb.15:
	cmpl	$133, %ecx
	jne	LBB0_20
## %bb.16:
	movl	$131, (%rax,%rbx,4)
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_bcm2835_gpio_irq_config
	movq	(%r12), %rax
	movl	$132, (%rax,%rbx,4)
	jmp	LBB0_25
LBB0_17:
	xorl	%r14d, %r14d
	jmp	LBB0_25
LBB0_18:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_bcm2835_gpio_irq_config
	movq	(%r12), %rax
	movl	$131, (%rax,%rbx,4)
	jmp	LBB0_24
LBB0_20:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_bcm2835_gpio_irq_config
	movq	(%r12), %rax
	movl	$132, (%rax,%rbx,4)
	jmp	LBB0_24
LBB0_21:
	movl	$131, (%rax,%rbx,4)
LBB0_22:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_bcm2835_gpio_irq_config
	movq	(%r12), %rax
	movl	$133, (%rax,%rbx,4)
	jmp	LBB0_25
LBB0_23:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_bcm2835_gpio_irq_config
	movq	(%r12), %rax
	movl	$133, (%rax,%rbx,4)
LBB0_24:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_bcm2835_gpio_irq_config
LBB0_25:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_14
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___bcm2835_gpio_irq_set_type_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bcm2835_gpio_irq_set_type_enabled
___bcm2835_gpio_irq_set_type_enabled:   ; @__bcm2835_gpio_irq_set_type_enabled
	.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
	sub	w8, w2, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x21, x2
	ldr	x8, [x19]
	ldr	w8, [x8, w20, uxtw #2]
	cmp	w8, w2
	b.eq	LBB0_24
; %bb.3:
	mov	w22, w20
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bcm2835_gpio_irq_config
	ldr	x8, [x19]
	str	w21, [x8, x22, lsl #2]
	b	LBB0_23
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_5:
	ldr	x8, [x19]
	ldr	w8, [x8, w20, uxtw #2]
	cmp	w8, #128
	b.eq	LBB0_24
; %bb.6:
	mov	w21, w20
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bcm2835_gpio_irq_config
	mov	w0, #0
	ldr	x8, [x19]
	mov	w9, #128
	str	w9, [x8, x21, lsl #2]
	b	LBB0_25
LBB0_7:
	ldr	x8, [x19]
	ldr	w9, [x8, w20, uxtw #2]
	cmp	w9, #131
	b.eq	LBB0_24
; %bb.8:
	mov	w21, w20
	cmp	w9, #133
	b.ne	LBB0_17
; %bb.9:
	lsl	x21, x21, #2
	mov	w9, #132
	str	w9, [x8, x21]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bcm2835_gpio_irq_config
	mov	w0, #0
	ldr	x8, [x19]
	mov	w9, #131
	str	w9, [x8, x21]
	b	LBB0_25
LBB0_10:
	ldr	x8, [x19]
	ldr	w9, [x8, w20, uxtw #2]
	cmp	w9, #133
	b.eq	LBB0_24
; %bb.11:
	mov	w21, w20
	cmp	w9, #132
	b.eq	LBB0_19
; %bb.12:
	cmp	w9, #131
	b.ne	LBB0_21
; %bb.13:
	lsl	x21, x21, #2
	mov	w9, #132
	b	LBB0_20
LBB0_14:
	ldr	x8, [x19]
	ldr	w9, [x8, w20, uxtw #2]
	cmp	w9, #132
	b.eq	LBB0_24
; %bb.15:
	mov	w21, w20
	cmp	w9, #133
	b.ne	LBB0_18
; %bb.16:
	lsl	x21, x21, #2
	mov	w9, #131
	str	w9, [x8, x21]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bcm2835_gpio_irq_config
	mov	w0, #0
	ldr	x8, [x19]
	mov	w9, #132
	str	w9, [x8, x21]
	b	LBB0_25
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bcm2835_gpio_irq_config
	ldr	x8, [x19]
	mov	w9, #131
	b	LBB0_22
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bcm2835_gpio_irq_config
	ldr	x8, [x19]
	mov	w9, #132
	b	LBB0_22
LBB0_19:
	lsl	x21, x21, #2
	mov	w9, #131
LBB0_20:
	str	w9, [x8, x21]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_bcm2835_gpio_irq_config
	mov	w0, #0
	ldr	x8, [x19]
	mov	w9, #133
	str	w9, [x8, x21]
	b	LBB0_25
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_bcm2835_gpio_irq_config
	ldr	x8, [x19]
	mov	w9, #133
LBB0_22:
	str	w9, [x8, x21, lsl #2]
LBB0_23:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_bcm2835_gpio_irq_config
LBB0_24:
	mov	w0, #0
LBB0_25:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___bcm2835_gpio_irq_set_type_enabled
.subsections_via_symbols
