	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_irq_flags
_decode_irq_flags:                      ## @decode_irq_flags
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %ebx
	movl	%ebx, %eax
	andb	$-125, %al
	addb	$-128, %al
	cmpb	$4, %al
	jae	LBB0_1
## %bb.2:
	movsbq	%al, %rax
	leaq	l_switch.table.decode_irq_flags(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.decode_irq_flags.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_ACPI_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movq	_ACPI_EDGE_SENSITIVE@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, (%r12)
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_IORESOURCE_IRQ_SHAREABLE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	jne	LBB0_4
## %bb.5:
	movq	_ACPI_EXCLUSIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ACPI_SHARED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_LEVEL_SENSITIVE,4,2       ## @ACPI_LEVEL_SENSITIVE
	.comm	_ACPI_ACTIVE_LOW,4,2            ## @ACPI_ACTIVE_LOW
	.comm	_ACPI_ACTIVE_HIGH,4,2           ## @ACPI_ACTIVE_HIGH
	.comm	_ACPI_EDGE_SENSITIVE,4,2        ## @ACPI_EDGE_SENSITIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't encode invalid IRQ mode %#x\n"

	.comm	_IORESOURCE_IRQ_SHAREABLE,4,2   ## @IORESOURCE_IRQ_SHAREABLE
	.comm	_ACPI_SHARED,4,2                ## @ACPI_SHARED
	.comm	_ACPI_EXCLUSIVE,4,2             ## @ACPI_EXCLUSIVE
	.no_dead_strip	_decode_irq_flags
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.decode_irq_flags
l_switch.table.decode_irq_flags:
	.quad	_ACPI_LEVEL_SENSITIVE
	.quad	_ACPI_EDGE_SENSITIVE
	.quad	_ACPI_LEVEL_SENSITIVE
	.quad	_ACPI_EDGE_SENSITIVE

	.p2align	3                               ## @switch.table.decode_irq_flags.1
l_switch.table.decode_irq_flags.1:
	.quad	_ACPI_ACTIVE_LOW
	.quad	_ACPI_ACTIVE_LOW
	.quad	_ACPI_ACTIVE_HIGH
	.quad	_ACPI_ACTIVE_HIGH

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_irq_flags
_decode_irq_flags:                      ; @decode_irq_flags
	.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, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	sxtb	x8, w20
	and	x8, x8, #0xffffffffffffff83
	eor	x8, x8, #0xffffffffffffff80
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.decode_irq_flags@PAGE
Lloh1:
	add	x9, x9, l_switch.table.decode_irq_flags@PAGEOFF
	ldr	x9, [x9, x8, lsl #3]
Lloh2:
	adrp	x10, l_switch.table.decode_irq_flags.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.decode_irq_flags.1@PAGEOFF
	ldr	x8, [x10, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _ACPI_ACTIVE_HIGH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_ACTIVE_HIGH@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ACPI_EDGE_SENSITIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_EDGE_SENSITIVE@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	str	w9, [x22]
	ldr	w8, [x8]
	str	w8, [x21]
Lloh10:
	adrp	x8, _IORESOURCE_IRQ_SHAREABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IORESOURCE_IRQ_SHAREABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ACPI_EXCLUSIVE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ACPI_EXCLUSIVE@GOTPAGEOFF]
Lloh15:
	adrp	x10, _ACPI_SHARED@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ACPI_SHARED@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [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
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_LEVEL_SENSITIVE,4,2       ; @ACPI_LEVEL_SENSITIVE
	.comm	_ACPI_ACTIVE_LOW,4,2            ; @ACPI_ACTIVE_LOW
	.comm	_ACPI_ACTIVE_HIGH,4,2           ; @ACPI_ACTIVE_HIGH
	.comm	_ACPI_EDGE_SENSITIVE,4,2        ; @ACPI_EDGE_SENSITIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't encode invalid IRQ mode %#x\n"

	.comm	_IORESOURCE_IRQ_SHAREABLE,4,2   ; @IORESOURCE_IRQ_SHAREABLE
	.comm	_ACPI_SHARED,4,2                ; @ACPI_SHARED
	.comm	_ACPI_EXCLUSIVE,4,2             ; @ACPI_EXCLUSIVE
	.no_dead_strip	_decode_irq_flags
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.decode_irq_flags
l_switch.table.decode_irq_flags:
	.quad	_ACPI_LEVEL_SENSITIVE
	.quad	_ACPI_EDGE_SENSITIVE
	.quad	_ACPI_LEVEL_SENSITIVE
	.quad	_ACPI_EDGE_SENSITIVE

	.p2align	3                               ; @switch.table.decode_irq_flags.1
l_switch.table.decode_irq_flags.1:
	.quad	_ACPI_ACTIVE_LOW
	.quad	_ACPI_ACTIVE_LOW
	.quad	_ACPI_ACTIVE_HIGH
	.quad	_ACPI_ACTIVE_HIGH

.subsections_via_symbols
