	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf610_gpio_irq_set_type
_vf610_gpio_irq_set_type:               ## @vf610_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, %r14d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movl	%eax, %edi
	callq	_gpiochip_get_data
	leal	-128(%r14), %ecx
	cmpl	$5, %ecx
	jae	LBB0_1
## %bb.2:
	movslq	%ecx, %rcx
	leaq	l_switch.table.vf610_gpio_irq_set_type(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rax
	movq	(%rbx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	_IRQ_TYPE_LEVEL_MASK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_irq_set_handler_locked
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_INT_RISING_EDGE,4,2       ## @PORT_INT_RISING_EDGE
	.comm	_PORT_INT_FALLING_EDGE,4,2      ## @PORT_INT_FALLING_EDGE
	.comm	_PORT_INT_EITHER_EDGE,4,2       ## @PORT_INT_EITHER_EDGE
	.comm	_PORT_INT_LOGIC_ZERO,4,2        ## @PORT_INT_LOGIC_ZERO
	.comm	_PORT_INT_LOGIC_ONE,4,2         ## @PORT_INT_LOGIC_ONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_TYPE_LEVEL_MASK,4,2        ## @IRQ_TYPE_LEVEL_MASK
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.no_dead_strip	_vf610_gpio_irq_set_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.vf610_gpio_irq_set_type
l_switch.table.vf610_gpio_irq_set_type:
	.quad	_PORT_INT_LOGIC_ZERO
	.quad	_PORT_INT_LOGIC_ONE
	.quad	_PORT_INT_RISING_EDGE
	.quad	_PORT_INT_FALLING_EDGE
	.quad	_PORT_INT_EITHER_EDGE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vf610_gpio_irq_set_type
_vf610_gpio_irq_set_type:               ; @vf610_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
	sub	w8, w20, #128
	cmp	w8, #5
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.vf610_gpio_irq_set_type@PAGE
Lloh1:
	add	x9, x9, l_switch.table.vf610_gpio_irq_set_type@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	ldr	x9, [x0]
	ldr	x10, [x19]
	str	w8, [x9, x10, lsl #2]
Lloh2:
	adrp	x8, _IRQ_TYPE_LEVEL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh11:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_set_handler_locked
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_INT_RISING_EDGE,4,2       ; @PORT_INT_RISING_EDGE
	.comm	_PORT_INT_FALLING_EDGE,4,2      ; @PORT_INT_FALLING_EDGE
	.comm	_PORT_INT_EITHER_EDGE,4,2       ; @PORT_INT_EITHER_EDGE
	.comm	_PORT_INT_LOGIC_ZERO,4,2        ; @PORT_INT_LOGIC_ZERO
	.comm	_PORT_INT_LOGIC_ONE,4,2         ; @PORT_INT_LOGIC_ONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_TYPE_LEVEL_MASK,4,2        ; @IRQ_TYPE_LEVEL_MASK
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.no_dead_strip	_vf610_gpio_irq_set_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.vf610_gpio_irq_set_type
l_switch.table.vf610_gpio_irq_set_type:
	.quad	_PORT_INT_LOGIC_ZERO
	.quad	_PORT_INT_LOGIC_ONE
	.quad	_PORT_INT_RISING_EDGE
	.quad	_PORT_INT_FALLING_EDGE
	.quad	_PORT_INT_EITHER_EDGE

.subsections_via_symbols
