	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gr2d_probe
_gr2d_probe:                            ## @gr2d_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 72(%r15)
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	4(%r15), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	4(%r15), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_6:
	leaq	8(%r15), %rbx
	leaq	48(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	_gr2d_client_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movq	%r14, 32(%r15)
	movq	_HOST1X_CLASS_GR2D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r12, 16(%r15)
	movl	$1, 8(%r15)
	movq	%r15, %rdi
	addq	$68, %rdi
	callq	_INIT_LIST_HEAD
	movq	72(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r15)
	movq	_gr2d_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r15)
	movq	%rbx, %rdi
	callq	_host1x_client_register
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	movq	_gr2d_addr_regs@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r15), %esi
	callq	_set_bit
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_13:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	4(%r15), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_11
	.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	"cannot turn on clock\n"

	.comm	_gr2d_client_ops,4,2            ## @gr2d_client_ops
	.comm	_HOST1X_CLASS_GR2D,4,2          ## @HOST1X_CLASS_GR2D
	.comm	_gr2d_ops,4,2                   ## @gr2d_ops
L_.str.2:                               ## @.str.2
	.asciz	"failed to register host1x client: %d\n"

	.comm	_gr2d_addr_regs,8,3             ## @gr2d_addr_regs
	.no_dead_strip	_gr2d_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gr2d_probe
_gr2d_probe:                            ; @gr2d_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
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #80
	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	x22, x0
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20, #4]
	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	w0, [x20, #4]
	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_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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:
	ldr	w0, [x20, #4]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_8:
	add	x0, x20, #48
	bl	_INIT_LIST_HEAD
Lloh9:
	adrp	x8, _gr2d_client_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gr2d_client_ops@GOTPAGEOFF]
	mov	w9, #1
	mov	x21, x20
	str	w9, [x21, #8]!
	stp	x19, x8, [x21, #24]
Lloh11:
	adrp	x8, _HOST1X_CLASS_GR2D@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HOST1X_CLASS_GR2D@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	str	x22, [x21, #8]
	add	x0, x21, #60
	bl	_INIT_LIST_HEAD
	ldr	x8, [x21, #64]
	ldr	w8, [x8]
	str	w8, [x21, #56]
Lloh14:
	adrp	x8, _gr2d_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _gr2d_ops@GOTPAGEOFF]
	str	x8, [x21, #48]
	mov	x0, x21
	bl	_host1x_client_register
	tbnz	w0, #31, LBB0_13
; %bb.9:
Lloh16:
	adrp	x21, _gr2d_addr_regs@GOTPAGE
Lloh17:
	ldr	x21, [x21, _gr2d_addr_regs@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_12
; %bb.10:
	mov	x22, #0
LBB0_11:                                ; =>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_11
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w21, #0
	b	LBB0_5
LBB0_13:
	mov	x21, x0
	str	x21, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #4]
	bl	_clk_disable_unprepare
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.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	"cannot turn on clock\n"

	.comm	_gr2d_client_ops,4,2            ; @gr2d_client_ops
	.comm	_HOST1X_CLASS_GR2D,4,2          ; @HOST1X_CLASS_GR2D
	.comm	_gr2d_ops,4,2                   ; @gr2d_ops
l_.str.2:                               ; @.str.2
	.asciz	"failed to register host1x client: %d\n"

	.comm	_gr2d_addr_regs,8,3             ; @gr2d_addr_regs
	.no_dead_strip	_gr2d_probe
.subsections_via_symbols
