	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armctrl_xlate
_armctrl_xlate:                         ## @armctrl_xlate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rdx, %rbx
	xorl	%edi, %edi
	cmpl	$2, %ecx
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_NR_BANKS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	8(%rbx), %rax
	movq	_IRQS_PER_BANK@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	8(%rbx), %rax
	movq	_NR_IRQS_BANK0@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
LBB0_6:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_MAKE_HWIRQ
	movq	%rax, (%r15)
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NR_BANKS,8,3                   ## @NR_BANKS
	.comm	_IRQS_PER_BANK,8,3              ## @IRQS_PER_BANK
	.comm	_NR_IRQS_BANK0,8,3              ## @NR_IRQS_BANK0
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.no_dead_strip	_armctrl_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armctrl_xlate
_armctrl_xlate:                         ; @armctrl_xlate
	.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, x5
	mov	x20, x4
	mov	x21, x2
	cmp	w3, #2
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NR_BANKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NR_BANKS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_WARN_ON
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x9, _IRQS_PER_BANK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IRQS_PER_BANK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_WARN_ON
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.4:
	mov	w0, #0
	bl	_WARN_ON
	cbz	x0, LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
LBB0_7:
	ldr	x8, [x21, #8]
Lloh9:
	adrp	x9, _NR_IRQS_BANK0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NR_IRQS_BANK0@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_WARN_ON
	cbnz	x0, LBB0_5
LBB0_8:
	ldp	x0, x1, [x21]
	bl	_MAKE_HWIRQ
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20]
Lloh12:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NR_BANKS,8,3                   ; @NR_BANKS
	.comm	_IRQS_PER_BANK,8,3              ; @IRQS_PER_BANK
	.comm	_NR_IRQS_BANK0,8,3              ; @NR_IRQS_BANK0
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.no_dead_strip	_armctrl_xlate
.subsections_via_symbols
