	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c_irq_type
_s3c_irq_type:                          ## @s3c_irq_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%ebx, %ebx
	leal	-131(%rsi), %eax
	cmpl	$3, %eax
	jb	LBB0_5
## %bb.1:
	leal	-129(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_2
## %bb.7:
	movl	(%rdi), %edi
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movl	(%rdi), %edi
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	callq	_irq_set_handler
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	cmpl	$128, %esi
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No such irq type %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_s3c_irq_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c_irq_type
_s3c_irq_type:                          ; @s3c_irq_type
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w1, #131
	cmp	w8, #3
	b.lo	LBB0_3
; %bb.1:
	sub	w8, w1, #129
	cmp	w8, #2
	b.hs	LBB0_6
; %bb.2:
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x0]
Lloh2:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh3:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_irq_set_handler
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.7:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No such irq type %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_s3c_irq_type
.subsections_via_symbols
