	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tangox_irq_set_type
_tangox_irq_set_type:                   ## @tangox_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, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	jae	LBB0_1
## %bb.2:
	movq	(%rax), %r12
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movslq	%ecx, %rax
	leaq	l_switch.table.tangox_irq_set_type(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.tangox_irq_set_type.1(%rip), %rdx
	movq	(%rdx,%rax,8), %r13
	movq	(%rcx), %rsi
	addq	(%r12), %rsi
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	callq	_intc_writel
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	callq	_intc_writel
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_irq_setup_alt_chip             ## TAILCALL
LBB0_1:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ## @IRQ_TYPE_SENSE_MASK
	.comm	_EDGE_CFG_RISE_SET,8,3          ## @EDGE_CFG_RISE_SET
	.comm	_EDGE_CFG_FALL_CLR,8,3          ## @EDGE_CFG_FALL_CLR
	.comm	_EDGE_CFG_RISE_CLR,8,3          ## @EDGE_CFG_RISE_CLR
	.comm	_EDGE_CFG_FALL_SET,8,3          ## @EDGE_CFG_FALL_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid trigger mode %x for IRQ %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tangox_irq_set_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tangox_irq_set_type
l_switch.table.tangox_irq_set_type:
	.quad	_EDGE_CFG_RISE_SET
	.quad	_EDGE_CFG_RISE_CLR
	.quad	_EDGE_CFG_RISE_SET
	.quad	_EDGE_CFG_RISE_CLR

	.p2align	3                               ## @switch.table.tangox_irq_set_type.1
l_switch.table.tangox_irq_set_type.1:
	.quad	_EDGE_CFG_FALL_SET
	.quad	_EDGE_CFG_FALL_CLR
	.quad	_EDGE_CFG_FALL_CLR
	.quad	_EDGE_CFG_FALL_SET

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tangox_irq_set_type
_tangox_irq_set_type:                   ; @tangox_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
	bl	_irq_data_get_irq_chip_data
Lloh0:
	adrp	x8, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w19
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
	ldp	x22, x9, [x0]
	ldr	x21, [x9]
	sbfiz	x8, x8, #3, #32
Lloh3:
	adrp	x9, l_switch.table.tangox_irq_set_type@PAGE
Lloh4:
	add	x9, x9, l_switch.table.tangox_irq_set_type@PAGEOFF
	ldr	x9, [x9, x8]
Lloh5:
	adrp	x10, l_switch.table.tangox_irq_set_type.1@PAGE
Lloh6:
	add	x10, x10, l_switch.table.tangox_irq_set_type.1@PAGEOFF
	ldr	x23, [x10, x8]
	ldr	x8, [x22]
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_intc_writel
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x1, x9, x8
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_intc_writel
	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_setup_alt_chip
LBB0_2:
	ldr	w2, [x20]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ; @IRQ_TYPE_SENSE_MASK
	.comm	_EDGE_CFG_RISE_SET,8,3          ; @EDGE_CFG_RISE_SET
	.comm	_EDGE_CFG_FALL_CLR,8,3          ; @EDGE_CFG_FALL_CLR
	.comm	_EDGE_CFG_RISE_CLR,8,3          ; @EDGE_CFG_RISE_CLR
	.comm	_EDGE_CFG_FALL_SET,8,3          ; @EDGE_CFG_FALL_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid trigger mode %x for IRQ %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tangox_irq_set_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tangox_irq_set_type
l_switch.table.tangox_irq_set_type:
	.quad	_EDGE_CFG_RISE_SET
	.quad	_EDGE_CFG_RISE_CLR
	.quad	_EDGE_CFG_RISE_SET
	.quad	_EDGE_CFG_RISE_CLR

	.p2align	3                               ; @switch.table.tangox_irq_set_type.1
l_switch.table.tangox_irq_set_type.1:
	.quad	_EDGE_CFG_FALL_SET
	.quad	_EDGE_CFG_FALL_CLR
	.quad	_EDGE_CFG_FALL_CLR
	.quad	_EDGE_CFG_FALL_SET

.subsections_via_symbols
