	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_irq_set_type
_stm32_irq_set_type:                    ## @stm32_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r13
	movq	(%rax), %r14
	movq	(%r14), %r15
	movq	%rax, %rdi
	callq	_irq_gc_lock
	movq	%r14, %rdi
	callq	_stm32_exti_hwspin_lock
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	4(%r15), %esi
	movq	%r13, %rdi
	callq	_irq_reg_readl
	movl	%eax, -48(%rbp)
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_irq_reg_readl
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_stm32_exti_set_type
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-48(%rbp), %esi
	movl	4(%r15), %edx
	movq	%r13, %rdi
	callq	_irq_reg_writel
	movl	-44(%rbp), %esi
	movl	(%r15), %edx
	movq	%r13, %rdi
	callq	_irq_reg_writel
LBB0_3:
	movq	%r14, %rdi
	callq	_stm32_exti_hwspin_unlock
LBB0_4:
	movq	%r13, %rdi
	callq	_irq_gc_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stm32_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 stm32_irq_set_type
_stm32_irq_set_type:                    ; @stm32_irq_set_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x22, x0
	bl	_irq_data_get_irq_chip_data
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x24, [x20]
	bl	_irq_gc_lock
	mov	x0, x20
	bl	_stm32_exti_hwspin_lock
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w1, [x24, #4]
	mov	x0, x19
	bl	_irq_reg_readl
	str	w0, [sp, #12]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_irq_reg_readl
	str	w0, [sp, #8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_stm32_exti_set_type
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w1, [sp, #12]
	ldr	w2, [x24, #4]
	mov	x0, x19
	bl	_irq_reg_writel
	ldr	w1, [sp, #8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_irq_reg_writel
LBB0_3:
	mov	x0, x20
	bl	_stm32_exti_hwspin_unlock
LBB0_4:
	mov	x0, x19
	bl	_irq_gc_unlock
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stm32_irq_set_type
.subsections_via_symbols
