	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm7120_l2_intc_init_one
_bcm7120_l2_intc_init_one:              ## @bcm7120_l2_intc_init_one
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	16(%rsi), %r12
	movl	%edx, %esi
	callq	_irq_of_parse_and_map
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	%r14d, %rax
	shlq	$4, %rax
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax), %r13
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	movl	$-1, (%rax,%r12,4)
	movl	$-1, %eax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	orl	%eax, (%r15,%r12,4)
	incq	%r12
	movl	(%rbx), %eax
	cmpq	%rax, %r12
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	imull	%r14d, %eax
	addq	%rax, %rdi
	addq	%r12, %rdi
	callq	_be32_to_cpup
	movq	(%r13), %rcx
	orl	(%rcx,%r12,4), %eax
	movl	%eax, (%rcx,%r12,4)
	jmp	LBB0_6
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, 8(%rax,%rcx)
	movq	_bcm7120_l2_intc_irq_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_irq_set_chained_handler_and_data
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to map interrupt %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_bcm7120_l2_intc_irq_handle,4,2 ## @bcm7120_l2_intc_irq_handle
	.no_dead_strip	_bcm7120_l2_intc_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm7120_l2_intc_init_one
_bcm7120_l2_intc_init_one:              ; @bcm7120_l2_intc_init_one
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	ldr	x24, [x1, #16]
	mov	x1, x2
	bl	_irq_of_parse_and_map
	cbz	w0, LBB0_8
; %bb.1:
	mov	x22, x0
	sxtw	x25, w19
	ldr	w8, [x20]
	add	x23, x24, w19, sxtw #4
	cbz	w8, LBB0_7
; %bb.2:
	mov	x26, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x23]
	mov	w8, #-1
	str	w8, [x9, x26, lsl #2]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x21, x27]
	orr	w8, w9, w8
	str	w8, [x21, x27]
	add	x26, x26, #1
	ldr	w8, [x20]
	cmp	x26, x8
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	lsl	x27, x26, #2
	cbz	x9, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mul	w8, w8, w19
	add	x8, x9, x8
	add	x0, x26, x8
	bl	_be32_to_cpup
	ldr	x9, [x23]
	ldr	w8, [x9, x27]
	orr	w8, w8, w0
	str	w8, [x9, x27]
	b	LBB0_4
LBB0_7:
	add	x8, x24, x25, lsl #4
	str	x20, [x8, #8]
Lloh0:
	adrp	x8, _bcm7120_l2_intc_irq_handle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bcm7120_l2_intc_irq_handle@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	_irq_set_chained_handler_and_data
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to map interrupt %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_bcm7120_l2_intc_irq_handle,4,2 ; @bcm7120_l2_intc_irq_handle
	.no_dead_strip	_bcm7120_l2_intc_init_one
.subsections_via_symbols
