	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xive_translate_code
_xive_translate_code:                   ## @xive_translate_code
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$1, %edx
	jne	LBB0_4
## %bb.3:
	movq	_INTR_POLARITY_LOW@GOTPCREL(%rip), %rax
	movq	_INTR_TRIGGER_LEVEL@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_1:
	movq	_INTR_POLARITY_HIGH@GOTPCREL(%rip), %rax
	movq	_INTR_TRIGGER_EDGE@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_4:
	movq	_INTR_POLARITY_CONFORM@GOTPCREL(%rip), %rax
	movq	_INTR_TRIGGER_CONFORM@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rdx), %edx
	movl	%edx, (%rcx)
	movl	(%rax), %eax
	movl	%eax, (%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTR_TRIGGER_EDGE,4,2          ## @INTR_TRIGGER_EDGE
	.comm	_INTR_POLARITY_HIGH,4,2         ## @INTR_POLARITY_HIGH
	.comm	_INTR_TRIGGER_LEVEL,4,2         ## @INTR_TRIGGER_LEVEL
	.comm	_INTR_POLARITY_LOW,4,2          ## @INTR_POLARITY_LOW
	.comm	_INTR_TRIGGER_CONFORM,4,2       ## @INTR_TRIGGER_CONFORM
	.comm	_INTR_POLARITY_CONFORM,4,2      ## @INTR_POLARITY_CONFORM
	.no_dead_strip	_xive_translate_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xive_translate_code
_xive_translate_code:                   ; @xive_translate_code
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _INTR_POLARITY_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTR_POLARITY_HIGH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _INTR_TRIGGER_EDGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INTR_TRIGGER_EDGE@GOTPAGEOFF]
Lloh4:
	adrp	x10, _INTR_POLARITY_CONFORM@GOTPAGE
Lloh5:
	ldr	x10, [x10, _INTR_POLARITY_CONFORM@GOTPAGEOFF]
Lloh6:
	adrp	x11, _INTR_TRIGGER_CONFORM@GOTPAGE
Lloh7:
	ldr	x11, [x11, _INTR_TRIGGER_CONFORM@GOTPAGEOFF]
Lloh8:
	adrp	x12, _INTR_POLARITY_LOW@GOTPAGE
Lloh9:
	ldr	x12, [x12, _INTR_POLARITY_LOW@GOTPAGEOFF]
	cmp	w2, #1
Lloh10:
	adrp	x13, _INTR_TRIGGER_LEVEL@GOTPAGE
Lloh11:
	ldr	x13, [x13, _INTR_TRIGGER_LEVEL@GOTPAGEOFF]
	csel	x11, x11, x13, ne
	csel	x10, x10, x12, ne
	cmp	w2, #0
	csel	x9, x9, x11, eq
	csel	x8, x8, x10, eq
	ldr	w9, [x9]
	str	w9, [x3]
	ldr	w8, [x8]
	str	w8, [x4]
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INTR_TRIGGER_EDGE,4,2          ; @INTR_TRIGGER_EDGE
	.comm	_INTR_POLARITY_HIGH,4,2         ; @INTR_POLARITY_HIGH
	.comm	_INTR_TRIGGER_LEVEL,4,2         ; @INTR_TRIGGER_LEVEL
	.comm	_INTR_POLARITY_LOW,4,2          ; @INTR_POLARITY_LOW
	.comm	_INTR_TRIGGER_CONFORM,4,2       ; @INTR_TRIGGER_CONFORM
	.comm	_INTR_POLARITY_CONFORM,4,2      ; @INTR_POLARITY_CONFORM
	.no_dead_strip	_xive_translate_code
.subsections_via_symbols
