	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_gpio_irq_set_type
_uniphier_gpio_irq_set_type:            ## @uniphier_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	%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	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movl	(%rdi), %edi
	callq	_BIT
	movl	%eax, %r13d
	movq	_IRQ_TYPE_EDGE_BOTH@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %ebx
LBB0_2:
	movq	_UNIPHIER_GPIO_IRQ_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_uniphier_gpio_reg_update
	movq	_UNIPHIER_GPIO_IRQ_FLT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_uniphier_gpio_reg_update
	movq	%r12, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_irq_chip_set_type_parent       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ## @IRQ_TYPE_EDGE_BOTH
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.comm	_UNIPHIER_GPIO_IRQ_MODE,4,2     ## @UNIPHIER_GPIO_IRQ_MODE
	.comm	_UNIPHIER_GPIO_IRQ_FLT_EN,4,2   ## @UNIPHIER_GPIO_IRQ_FLT_EN
	.no_dead_strip	_uniphier_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 uniphier_gpio_irq_set_type
_uniphier_gpio_irq_set_type:            ; @uniphier_gpio_irq_set_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x0]
	bl	_BIT
	mov	x22, x0
Lloh0:
	adrp	x8, _IRQ_TYPE_EDGE_BOTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_BOTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w19
	csel	w19, w9, w19, eq
	csel	w23, w0, wzr, eq
Lloh6:
	adrp	x8, _UNIPHIER_GPIO_IRQ_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNIPHIER_GPIO_IRQ_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_uniphier_gpio_reg_update
Lloh9:
	adrp	x8, _UNIPHIER_GPIO_IRQ_FLT_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UNIPHIER_GPIO_IRQ_FLT_EN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_uniphier_gpio_reg_update
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_irq_chip_set_type_parent
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ; @IRQ_TYPE_EDGE_BOTH
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.comm	_UNIPHIER_GPIO_IRQ_MODE,4,2     ; @UNIPHIER_GPIO_IRQ_MODE
	.comm	_UNIPHIER_GPIO_IRQ_FLT_EN,4,2   ; @UNIPHIER_GPIO_IRQ_FLT_EN
	.no_dead_strip	_uniphier_gpio_irq_set_type
.subsections_via_symbols
