	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_rcar_config_interrupt_input_mode
_gpio_rcar_config_interrupt_input_mode: ## @gpio_rcar_config_interrupt_input_mode
	.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	%r8d, %r12d
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	_POSNEG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	testl	%r13d, %r13d
	sete	%cl
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_gpio_rcar_modify_bit
	movq	_EDGLEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	sete	%cl
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_gpio_rcar_modify_bit
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_BOTHEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_gpio_rcar_modify_bit
LBB0_2:
	movq	_IOINTSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_gpio_rcar_modify_bit
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.3:
	movq	_INTCLR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_gpio_rcar_write
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_POSNEG,4,2                     ## @POSNEG
	.comm	_EDGLEVEL,4,2                   ## @EDGLEVEL
	.comm	_BOTHEDGE,4,2                   ## @BOTHEDGE
	.comm	_IOINTSEL,4,2                   ## @IOINTSEL
	.comm	_INTCLR,4,2                     ## @INTCLR
	.no_dead_strip	_gpio_rcar_config_interrupt_input_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_rcar_config_interrupt_input_mode
_gpio_rcar_config_interrupt_input_mode: ; @gpio_rcar_config_interrupt_input_mode
	.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	x22, x4
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _POSNEG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POSNEG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cmp	w23, #0
	cset	w3, eq
	mov	x0, x19
	mov	x2, x20
	bl	_gpio_rcar_modify_bit
Lloh3:
	adrp	x8, _EDGLEVEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDGLEVEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	cmp	w21, #0
	cset	w3, eq
	mov	x0, x19
	mov	x2, x20
	bl	_gpio_rcar_modify_bit
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _BOTHEDGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BOTHEDGE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	bl	_gpio_rcar_modify_bit
LBB0_2:
Lloh9:
	adrp	x8, _IOINTSEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IOINTSEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #1
	bl	_gpio_rcar_modify_bit
	cbnz	w21, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _INTCLR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTCLR@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_gpio_rcar_write
LBB0_4:
	mov	x0, 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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_POSNEG,4,2                     ; @POSNEG
	.comm	_EDGLEVEL,4,2                   ; @EDGLEVEL
	.comm	_BOTHEDGE,4,2                   ; @BOTHEDGE
	.comm	_IOINTSEL,4,2                   ; @IOINTSEL
	.comm	_INTCLR,4,2                     ; @INTCLR
	.no_dead_strip	_gpio_rcar_config_interrupt_input_mode
.subsections_via_symbols
