	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interrupt_polarity
_interrupt_polarity:                    ## @interrupt_polarity
	.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
	movl	%esi, %ebx
	movq	_ACPI_MADT_POLARITY_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	cmpl	$128, %edi
	je	LBB0_5
## %bb.1:
	cmpl	$129, %edi
	je	LBB0_6
## %bb.2:
	cmpl	$130, %edi
	je	LBB0_7
## %bb.4:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_5:
	movq	_AcpiGbl_FADT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
LBB0_6:
	movq	_INTR_POLARITY_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_INTR_POLARITY_HIGH@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_MADT_POLARITY_MASK,4,2    ## @ACPI_MADT_POLARITY_MASK
	.comm	_AcpiGbl_FADT,4,2               ## @AcpiGbl_FADT
	.comm	_INTR_POLARITY_LOW,4,2          ## @INTR_POLARITY_LOW
	.comm	_INTR_POLARITY_HIGH,4,2         ## @INTR_POLARITY_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"WARNING: Bogus Interrupt Polarity. Assume CONFORMS"

	.no_dead_strip	_interrupt_polarity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interrupt_polarity
_interrupt_polarity:                    ; @interrupt_polarity
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _ACPI_MADT_POLARITY_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_MADT_POLARITY_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x20, _INTR_POLARITY_HIGH@GOTPAGE
Lloh4:
	ldr	x20, [x20, _INTR_POLARITY_HIGH@GOTPAGEOFF]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.3:
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_4:
Lloh7:
	adrp	x8, _AcpiGbl_FADT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AcpiGbl_FADT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _INTR_POLARITY_LOW@GOTPAGE
Lloh11:
	ldr	x9, [x9, _INTR_POLARITY_LOW@GOTPAGEOFF]
	cmp	w8, w19
	csel	x20, x9, x20, eq
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x20, _INTR_POLARITY_LOW@GOTPAGE
Lloh13:
	ldr	x20, [x20, _INTR_POLARITY_LOW@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_MADT_POLARITY_MASK,4,2    ; @ACPI_MADT_POLARITY_MASK
	.comm	_AcpiGbl_FADT,4,2               ; @AcpiGbl_FADT
	.comm	_INTR_POLARITY_LOW,4,2          ; @INTR_POLARITY_LOW
	.comm	_INTR_POLARITY_HIGH,4,2         ; @INTR_POLARITY_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"WARNING: Bogus Interrupt Polarity. Assume CONFORMS"

	.no_dead_strip	_interrupt_polarity
.subsections_via_symbols
