	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gic_probe
_gic_probe:                             ## @gic_probe
	.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	%rdi, %r13
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r15
	movl	(%r13), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %esi
	movl	(%r14), %ecx
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movl	(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_25
## %bb.5:
	movq	8(%r12), %rcx
	xorl	%edx, %edx
	cmpl	$8, %esi
	jb	LBB0_21
## %bb.6:
	movq	%rax, %rdi
	subq	%rcx, %rdi
	cmpq	$32, %rdi
	jb	LBB0_21
## %bb.7:
	movl	%esi, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rbx
	movq	%rbx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rbx
	jae	LBB0_15
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_15:
	andq	$-4, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rbx,4), %xmm0
	movups	16(%rcx,%rbx,4), %xmm1
	movups	%xmm0, (%rax,%rbx,4)
	movups	%xmm1, 16(%rax,%rbx,4)
	movups	32(%rcx,%rbx,4), %xmm0
	movups	48(%rcx,%rbx,4), %xmm1
	movups	%xmm0, 32(%rax,%rbx,4)
	movups	%xmm1, 48(%rax,%rbx,4)
	movups	64(%rcx,%rbx,4), %xmm0
	movups	80(%rcx,%rbx,4), %xmm1
	movups	%xmm0, 64(%rax,%rbx,4)
	movups	%xmm1, 80(%rax,%rbx,4)
	movups	96(%rcx,%rbx,4), %xmm0
	movups	112(%rcx,%rbx,4), %xmm1
	movups	%xmm0, 96(%rax,%rbx,4)
	movups	%xmm1, 112(%rax,%rbx,4)
	addq	$32, %rbx
	addq	$-4, %rdi
	jne	LBB0_16
LBB0_17:
	testq	%r8, %r8
	je	LBB0_20
## %bb.18:
	leaq	(%rax,%rbx,4), %r9
	addq	$16, %r9
	leaq	(%rcx,%rbx,4), %rbx
	addq	$16, %rbx
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rbx,%rdi), %xmm0
	movups	(%rbx,%rdi), %xmm1
	movups	%xmm0, -16(%r9,%rdi)
	movups	%xmm1, (%r9,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_19
LBB0_20:
	cmpq	%rsi, %rdx
	je	LBB0_25
LBB0_21:
	movq	%rdx, %r8
	notq	%r8
	addq	%rsi, %r8
	movq	%rsi, %rbx
	andq	$3, %rbx
	je	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %edi
	movl	%edi, (%rax,%rdx,4)
	incq	%rdx
	decq	%rbx
	jne	LBB0_22
LBB0_23:
	cmpq	$3, %r8
	jb	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %edi
	movl	%edi, (%rax,%rdx,4)
	movl	4(%rcx,%rdx,4), %edi
	movl	%edi, 4(%rax,%rdx,4)
	movl	8(%rcx,%rdx,4), %edi
	movl	%edi, 8(%rax,%rdx,4)
	movl	12(%rcx,%rdx,4), %edi
	movl	%edi, 12(%rax,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_24
LBB0_25:
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rax, %rdx
	callq	_devm_clk_bulk_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.26:
	movq	%r12, 8(%r15)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	%r13, %rdi
	callq	_pm_runtime_enable
	movq	%r13, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_29
## %bb.27:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_gic_of_init_child
	testl	%eax, %eax
	je	LBB0_32
## %bb.28:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_pm_runtime_put_sync
	jmp	LBB0_30
LBB0_29:
	movl	%eax, %ebx
LBB0_30:
	movq	%r13, %rdi
	callq	_pm_runtime_disable
LBB0_31:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_irq_dispose_mapping
	jmp	LBB0_13
LBB0_32:
	movq	%r13, %rdi
	callq	_pm_runtime_put
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no device match found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"no parent interrupt found!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"GIC IRQ controller registered\n"

	.no_dead_strip	_gic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gic_probe
_gic_probe:                             ; @gic_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_of_device_get_match_data
	cbz	x0, LBB0_16
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19]
	mov	w1, #0
	bl	_irq_of_parse_and_map
	cbz	w0, LBB0_18
; %bb.3:
	mov	x20, x0
	ldr	w1, [x22]
	ldr	w3, [x23]
	mov	x0, x19
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_17
; %bb.4:
	mov	x2, x0
	ldr	w1, [x22]
	cmp	w1, #1
	b.lt	LBB0_12
; %bb.5:
	mov	x8, #0
	ldr	x9, [x22, #8]
	cmp	w1, #16
	b.lo	LBB0_10
; %bb.6:
	sub	x10, x2, x9
	cmp	x10, #64
	b.lo	LBB0_10
; %bb.7:
	and	x8, x1, #0xfffffff0
	add	x10, x2, #32
	add	x11, x9, #32
	mov	x12, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x8, x1
	b.eq	LBB0_12
LBB0_10:
	lsl	x10, x8, #2
	add	x9, x9, x10
	add	x10, x2, x10
	sub	x8, x1, x8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	str	w11, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_devm_clk_bulk_get
	mov	x23, x0
	cbnz	w0, LBB0_23
; %bb.13:
	str	x22, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_21
; %bb.14:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_gic_of_init_child
	mov	x23, x0
	cbz	w0, LBB0_24
; %bb.15:
	mov	x0, x19
	bl	_pm_runtime_put_sync
	b	LBB0_22
LBB0_16:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	x23, x0
LBB0_22:
	mov	x0, x19
	bl	_pm_runtime_disable
LBB0_23:
	mov	x0, x20
	bl	_irq_dispose_mapping
	b	LBB0_20
LBB0_24:
	mov	x0, x19
	bl	_pm_runtime_put
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no device match found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"no parent interrupt found!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"GIC IRQ controller registered\n"

	.no_dead_strip	_gic_probe
.subsections_via_symbols
