	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_cirq_set_type
_mtk_cirq_set_type:                     ## @mtk_cirq_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.mtk_cirq_set_type(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.mtk_cirq_set_type.1(%rip), %rdx
	movq	(%rdx,%rax,8), %r15
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	_mtk_cirq_write_mask
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mtk_cirq_write_mask
LBB0_2:
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ## @IRQ_TYPE_SENSE_MASK
	.comm	_CIRQ_POL_CLR,4,2               ## @CIRQ_POL_CLR
	.comm	_CIRQ_SENS_CLR,4,2              ## @CIRQ_SENS_CLR
	.comm	_CIRQ_POL_SET,4,2               ## @CIRQ_POL_SET
	.comm	_CIRQ_SENS_SET,4,2              ## @CIRQ_SENS_SET
	.no_dead_strip	_mtk_cirq_set_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mtk_cirq_set_type
l_switch.table.mtk_cirq_set_type:
	.quad	_CIRQ_POL_CLR
	.quad	_CIRQ_POL_SET
	.quad	_CIRQ_POL_SET
	.quad	_CIRQ_POL_CLR

	.p2align	3                               ## @switch.table.mtk_cirq_set_type.1
l_switch.table.mtk_cirq_set_type.1:
	.quad	_CIRQ_SENS_SET
	.quad	_CIRQ_SENS_SET
	.quad	_CIRQ_SENS_CLR
	.quad	_CIRQ_SENS_CLR

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_cirq_set_type
_mtk_cirq_set_type:                     ; @mtk_cirq_set_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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh3:
	adrp	x9, l_switch.table.mtk_cirq_set_type@PAGE
Lloh4:
	add	x9, x9, l_switch.table.mtk_cirq_set_type@PAGEOFF
	ldr	x9, [x9, x8]
Lloh5:
	adrp	x10, l_switch.table.mtk_cirq_set_type.1@PAGE
Lloh6:
	add	x10, x10, l_switch.table.mtk_cirq_set_type.1@PAGEOFF
	ldr	x21, [x10, x8]
	ldr	w1, [x9]
	mov	x0, x20
	bl	_mtk_cirq_write_mask
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mtk_cirq_write_mask
LBB0_2:
	ldr	x0, [x20, #8]
	ldr	x8, [x0]
	ldr	x2, [x8]
	mov	x1, x19
	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
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ; @IRQ_TYPE_SENSE_MASK
	.comm	_CIRQ_POL_CLR,4,2               ; @CIRQ_POL_CLR
	.comm	_CIRQ_SENS_CLR,4,2              ; @CIRQ_SENS_CLR
	.comm	_CIRQ_POL_SET,4,2               ; @CIRQ_POL_SET
	.comm	_CIRQ_SENS_SET,4,2              ; @CIRQ_SENS_SET
	.no_dead_strip	_mtk_cirq_set_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mtk_cirq_set_type
l_switch.table.mtk_cirq_set_type:
	.quad	_CIRQ_POL_CLR
	.quad	_CIRQ_POL_SET
	.quad	_CIRQ_POL_SET
	.quad	_CIRQ_POL_CLR

	.p2align	3                               ; @switch.table.mtk_cirq_set_type.1
l_switch.table.mtk_cirq_set_type.1:
	.quad	_CIRQ_SENS_SET
	.quad	_CIRQ_SENS_SET
	.quad	_CIRQ_SENS_CLR
	.quad	_CIRQ_SENS_CLR

.subsections_via_symbols
