	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_intc_pic_register
_bcm_intc_pic_register:                 ## @bcm_intc_pic_register
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_device_get_nameunit
	movq	%rax, %r15
	movq	_BCM_INTC_NIRQS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.1:
	movl	$12, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r14
	movq	%rbx, -12(%r14,%r13)
	movq	%rbx, %rdi
	callq	_IS_IRQ_BASIC
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_INTC_DISABLE_BASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14,%r13)
	movq	_INTC_ENABLE_BASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14,%r13)
	movl	%ebx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_IS_IRQ_BANK1
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_INTC_DISABLE_BANK1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14,%r13)
	movq	_INTC_ENABLE_BANK1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14,%r13)
	movq	%rbx, %rdi
	callq	_IRQ_BANK1
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_IS_IRQ_BANK2
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_INTC_DISABLE_BANK2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14,%r13)
	movq	_INTC_ENABLE_BANK2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14,%r13)
	movq	%rbx, %rdi
	callq	_IRQ_BANK2
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -4(%r14,%r13)
	addq	%r13, %r14
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_intr_isrc_register
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addq	$24, %r13
	movq	_BCM_INTC_NIRQS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_3
LBB0_11:
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_intr_pic_register
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_13
LBB0_12:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM_INTC_NIRQS,8,3             ## @BCM_INTC_NIRQS
	.comm	_INTC_DISABLE_BASIC,4,2         ## @INTC_DISABLE_BASIC
	.comm	_INTC_ENABLE_BASIC,4,2          ## @INTC_ENABLE_BASIC
	.comm	_INTC_DISABLE_BANK1,4,2         ## @INTC_DISABLE_BANK1
	.comm	_INTC_ENABLE_BANK1,4,2          ## @INTC_ENABLE_BANK1
	.comm	_INTC_DISABLE_BANK2,4,2         ## @INTC_DISABLE_BANK2
	.comm	_INTC_ENABLE_BANK2,4,2          ## @INTC_ENABLE_BANK2
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s,%u"

	.no_dead_strip	_bcm_intc_pic_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_intc_pic_register
_bcm_intc_pic_register:                 ; @bcm_intc_pic_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x0
	ldr	w0, [x0]
	bl	_device_get_nameunit
Lloh0:
	adrp	x24, _BCM_INTC_NIRQS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BCM_INTC_NIRQS@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x21, x0
	mov	x25, #0
	mov	x22, #0
	mov	w27, #1
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x28, _INTC_DISABLE_BASIC@GOTPAGE
Lloh5:
	ldr	x28, [x28, _INTC_DISABLE_BASIC@GOTPAGEOFF]
Lloh6:
	adrp	x19, _INTC_ENABLE_BASIC@GOTPAGE
Lloh7:
	ldr	x19, [x19, _INTC_ENABLE_BASIC@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x20, #8]
	str	x22, [x26, x25]
	mov	x0, x22
	bl	_IS_IRQ_BASIC
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x28]
	add	x9, x26, x25
	str	w8, [x9, #20]
	ldr	w8, [x19]
	str	w8, [x9, #16]
	mov	x0, x22
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_IS_IRQ_BANK1
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh8:
	adrp	x8, _INTC_DISABLE_BANK1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INTC_DISABLE_BANK1@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	x9, x26, x25
	str	w8, [x9, #20]
Lloh11:
	adrp	x8, _INTC_ENABLE_BANK1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INTC_ENABLE_BANK1@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x9, #16]
	mov	x0, x22
	bl	_IRQ_BANK1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_IS_IRQ_BANK2
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh14:
	adrp	x8, _INTC_DISABLE_BANK2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INTC_DISABLE_BANK2@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	x9, x26, x25
	str	w8, [x9, #20]
Lloh17:
	adrp	x8, _INTC_ENABLE_BANK2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INTC_ENABLE_BANK2@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x9, #16]
	mov	x0, x22
	bl	_IRQ_BANK2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	w8, w27, w0
	add	x9, x26, x25
	str	w8, [x9, #8]
	add	x0, x9, #12
	ldr	w1, [x20]
	mov	w2, #0
	mov	x3, x23
	mov	x4, x21
	mov	x5, x22
	bl	_intr_isrc_register
	cbnz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	x8, [x24]
	add	x25, x25, #24
	cmp	x22, x8
	b.lo	LBB0_2
LBB0_10:
	ldr	w0, [x20]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_intr_pic_register
Lloh20:
	adrp	x8, _ENXIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
Lloh23:
	adrp	x8, _ENXIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM_INTC_NIRQS,8,3             ; @BCM_INTC_NIRQS
	.comm	_INTC_DISABLE_BASIC,4,2         ; @INTC_DISABLE_BASIC
	.comm	_INTC_ENABLE_BASIC,4,2          ; @INTC_ENABLE_BASIC
	.comm	_INTC_DISABLE_BANK1,4,2         ; @INTC_DISABLE_BANK1
	.comm	_INTC_ENABLE_BANK1,4,2          ; @INTC_ENABLE_BANK1
	.comm	_INTC_DISABLE_BANK2,4,2         ; @INTC_DISABLE_BANK2
	.comm	_INTC_ENABLE_BANK2,4,2          ; @INTC_ENABLE_BANK2
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s,%u"

	.no_dead_strip	_bcm_intc_pic_register
.subsections_via_symbols
