	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp_gpio_set_irq_type
_xlp_gpio_set_irq_type:                 ## @xlp_gpio_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	addl	$-128, %ebx
	cmpl	$4, %ebx
	jae	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movslq	%ebx, %rax
	leaq	l_switch.table.xlp_gpio_set_irq_type(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.xlp_gpio_set_irq_type.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %edx
	movl	(%rcx), %ebx
	movl	4(%r14), %edi
	movl	(%r15), %esi
	callq	_xlp_gpio_set_reg
	movl	(%r14), %edi
	movl	(%r15), %esi
	movl	%ebx, %edx
	callq	_xlp_gpio_set_reg
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLP_GPIO_IRQ_TYPE_EDGE,4,2     ## @XLP_GPIO_IRQ_TYPE_EDGE
	.comm	_XLP_GPIO_IRQ_POL_HIGH,4,2      ## @XLP_GPIO_IRQ_POL_HIGH
	.comm	_XLP_GPIO_IRQ_POL_LOW,4,2       ## @XLP_GPIO_IRQ_POL_LOW
	.comm	_XLP_GPIO_IRQ_TYPE_LVL,4,2      ## @XLP_GPIO_IRQ_TYPE_LVL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xlp_gpio_set_irq_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.xlp_gpio_set_irq_type
l_switch.table.xlp_gpio_set_irq_type:
	.quad	_XLP_GPIO_IRQ_POL_LOW
	.quad	_XLP_GPIO_IRQ_POL_HIGH
	.quad	_XLP_GPIO_IRQ_POL_HIGH
	.quad	_XLP_GPIO_IRQ_POL_LOW

	.p2align	3                               ## @switch.table.xlp_gpio_set_irq_type.1
l_switch.table.xlp_gpio_set_irq_type.1:
	.quad	_XLP_GPIO_IRQ_TYPE_LVL
	.quad	_XLP_GPIO_IRQ_TYPE_LVL
	.quad	_XLP_GPIO_IRQ_TYPE_EDGE
	.quad	_XLP_GPIO_IRQ_TYPE_EDGE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlp_gpio_set_irq_type
_xlp_gpio_set_irq_type:                 ; @xlp_gpio_set_irq_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	x21, x1
	mov	x19, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	sub	w8, w21, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
	mov	x20, x0
	sbfiz	x8, x8, #3, #32
Lloh0:
	adrp	x9, l_switch.table.xlp_gpio_set_irq_type@PAGE
Lloh1:
	add	x9, x9, l_switch.table.xlp_gpio_set_irq_type@PAGEOFF
	ldr	x9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.xlp_gpio_set_irq_type.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.xlp_gpio_set_irq_type.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w2, [x8]
	ldr	w21, [x9]
	ldr	w0, [x0, #4]
	ldr	w1, [x19]
	bl	_xlp_gpio_set_reg
	ldr	w0, [x20]
	ldr	w1, [x19]
	mov	x2, x21
	bl	_xlp_gpio_set_reg
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_XLP_GPIO_IRQ_TYPE_EDGE,4,2     ; @XLP_GPIO_IRQ_TYPE_EDGE
	.comm	_XLP_GPIO_IRQ_POL_HIGH,4,2      ; @XLP_GPIO_IRQ_POL_HIGH
	.comm	_XLP_GPIO_IRQ_POL_LOW,4,2       ; @XLP_GPIO_IRQ_POL_LOW
	.comm	_XLP_GPIO_IRQ_TYPE_LVL,4,2      ; @XLP_GPIO_IRQ_TYPE_LVL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xlp_gpio_set_irq_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.xlp_gpio_set_irq_type
l_switch.table.xlp_gpio_set_irq_type:
	.quad	_XLP_GPIO_IRQ_POL_LOW
	.quad	_XLP_GPIO_IRQ_POL_HIGH
	.quad	_XLP_GPIO_IRQ_POL_HIGH
	.quad	_XLP_GPIO_IRQ_POL_LOW

	.p2align	3                               ; @switch.table.xlp_gpio_set_irq_type.1
l_switch.table.xlp_gpio_set_irq_type.1:
	.quad	_XLP_GPIO_IRQ_TYPE_LVL
	.quad	_XLP_GPIO_IRQ_TYPE_LVL
	.quad	_XLP_GPIO_IRQ_TYPE_EDGE
	.quad	_XLP_GPIO_IRQ_TYPE_EDGE

.subsections_via_symbols
