	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gr3d_probe
_gr3d_probe:                            ## @gr3d_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
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$112, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 72(%r14)
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 104(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	104(%r14), %rdi
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 96(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	96(%r14), %rdi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, 88(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	88(%r14), %rdi
	jmp	LBB0_5
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 80(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	80(%r14), %rdi
	jmp	LBB0_5
LBB0_13:
	movq	_TEGRA_POWERGATE_3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	96(%r14), %rdx
	movq	104(%r14), %rsi
	callq	_tegra_powergate_sequence_power_up
	testl	%eax, %eax
	js	LBB0_14
## %bb.16:
	movq	88(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.17:
	movq	_TEGRA_POWERGATE_3D1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	80(%r14), %rdx
	callq	_tegra_powergate_sequence_power_up
	testl	%eax, %eax
	js	LBB0_18
LBB0_19:
	leaq	8(%r14), %rbx
	leaq	48(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	_gr3d_client_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	movq	%r13, 32(%r14)
	movq	_HOST1X_CLASS_GR3D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%r15, 16(%r14)
	movl	$1, 8(%r14)
	movq	%r14, %rdi
	addq	$68, %rdi
	callq	_INIT_LIST_HEAD
	movq	72(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r14)
	movq	_gr3d_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r14)
	movq	%rbx, %rdi
	callq	_host1x_client_register
	testl	%eax, %eax
	js	LBB0_25
## %bb.20:
	movq	_gr3d_addr_regs@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r14), %esi
	callq	_set_bit
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_22
LBB0_23:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_14:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_15
LBB0_25:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
LBB0_18:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
LBB0_15:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot get clock\n"

L_.str.1:                               ## @.str.1
	.asciz	"3d"

L_.str.2:                               ## @.str.2
	.asciz	"cannot get reset\n"

L_.str.3:                               ## @.str.3
	.asciz	"nvidia,tegra30-gr3d"

L_.str.4:                               ## @.str.4
	.asciz	"3d2"

L_.str.5:                               ## @.str.5
	.asciz	"cannot get secondary clock\n"

L_.str.6:                               ## @.str.6
	.asciz	"cannot get secondary reset\n"

	.comm	_TEGRA_POWERGATE_3D,4,2         ## @TEGRA_POWERGATE_3D
L_.str.7:                               ## @.str.7
	.asciz	"failed to power up 3D unit\n"

	.comm	_TEGRA_POWERGATE_3D1,4,2        ## @TEGRA_POWERGATE_3D1
L_.str.8:                               ## @.str.8
	.asciz	"failed to power up secondary 3D unit\n"

	.comm	_gr3d_client_ops,4,2            ## @gr3d_client_ops
	.comm	_HOST1X_CLASS_GR3D,4,2          ## @HOST1X_CLASS_GR3D
	.comm	_gr3d_ops,4,2                   ## @gr3d_ops
L_.str.9:                               ## @.str.9
	.asciz	"failed to register host1x client: %d\n"

	.comm	_gr3d_addr_regs,8,3             ## @gr3d_addr_regs
	.no_dead_strip	_gr3d_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gr3d_probe
_gr3d_probe:                            ; @gr3d_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #112
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20, #72]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x20, #104]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #104]
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	str	x0, [x20, #96]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #96]
LBB0_8:
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_9:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_of_device_is_compatible
	cbz	x0, LBB0_14
; %bb.10:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #88]
	b	LBB0_8
LBB0_12:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	str	x0, [x20, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #80]
	b	LBB0_8
LBB0_14:
Lloh21:
	adrp	x8, _TEGRA_POWERGATE_3D@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TEGRA_POWERGATE_3D@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldp	x2, x1, [x20, #96]
	bl	_tegra_powergate_sequence_power_up
	tbnz	w0, #31, LBB0_22
; %bb.15:
	ldr	x1, [x20, #88]
	cbz	x1, LBB0_17
; %bb.16:
Lloh24:
	adrp	x8, _TEGRA_POWERGATE_3D1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TEGRA_POWERGATE_3D1@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x2, [x20, #80]
	bl	_tegra_powergate_sequence_power_up
	tbnz	w0, #31, LBB0_24
LBB0_17:
	add	x0, x20, #48
	bl	_INIT_LIST_HEAD
Lloh27:
	adrp	x8, _gr3d_client_ops@GOTPAGE
Lloh28:
	ldr	x8, [x8, _gr3d_client_ops@GOTPAGEOFF]
	mov	w9, #1
	mov	x22, x20
	str	w9, [x22, #8]!
	stp	x19, x8, [x22, #24]
Lloh29:
	adrp	x8, _HOST1X_CLASS_GR3D@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HOST1X_CLASS_GR3D@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x22, #16]
	str	x21, [x22, #8]
	add	x0, x22, #60
	bl	_INIT_LIST_HEAD
	ldr	x8, [x22, #64]
	ldr	w8, [x8]
	str	w8, [x22, #56]
Lloh32:
	adrp	x8, _gr3d_ops@GOTPAGE
Lloh33:
	ldr	x8, [x8, _gr3d_ops@GOTPAGEOFF]
	str	x8, [x22, #48]
	mov	x0, x22
	bl	_host1x_client_register
	tbnz	w0, #31, LBB0_23
; %bb.18:
Lloh34:
	adrp	x21, _gr3d_addr_regs@GOTPAGE
Lloh35:
	ldr	x21, [x21, _gr3d_addr_regs@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_21
; %bb.19:
	mov	x22, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w1, [x20]
	bl	_set_bit
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, w0, uxtw
	b.lo	LBB0_20
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w22, #0
	b	LBB0_5
LBB0_22:
	mov	x22, x0
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_25
LBB0_23:
	mov	x22, x0
	str	x22, [sp]
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_25
LBB0_24:
	mov	x22, x0
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_25:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot get clock\n"

l_.str.1:                               ; @.str.1
	.asciz	"3d"

l_.str.2:                               ; @.str.2
	.asciz	"cannot get reset\n"

l_.str.3:                               ; @.str.3
	.asciz	"nvidia,tegra30-gr3d"

l_.str.4:                               ; @.str.4
	.asciz	"3d2"

l_.str.5:                               ; @.str.5
	.asciz	"cannot get secondary clock\n"

l_.str.6:                               ; @.str.6
	.asciz	"cannot get secondary reset\n"

	.comm	_TEGRA_POWERGATE_3D,4,2         ; @TEGRA_POWERGATE_3D
l_.str.7:                               ; @.str.7
	.asciz	"failed to power up 3D unit\n"

	.comm	_TEGRA_POWERGATE_3D1,4,2        ; @TEGRA_POWERGATE_3D1
l_.str.8:                               ; @.str.8
	.asciz	"failed to power up secondary 3D unit\n"

	.comm	_gr3d_client_ops,4,2            ; @gr3d_client_ops
	.comm	_HOST1X_CLASS_GR3D,4,2          ; @HOST1X_CLASS_GR3D
	.comm	_gr3d_ops,4,2                   ; @gr3d_ops
l_.str.9:                               ; @.str.9
	.asciz	"failed to register host1x client: %d\n"

	.comm	_gr3d_addr_regs,8,3             ; @gr3d_addr_regs
	.no_dead_strip	_gr3d_probe
.subsections_via_symbols
