	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etnaviv_gpu_platform_probe
_etnaviv_gpu_platform_probe:            ## @etnaviv_gpu_platform_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), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 8(%rax)
	leaq	76(%rax), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	addq	$72, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 64(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.20:
	movq	64(%r15), %rdi
	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_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, %rbx
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%r15), %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r15), %ebx
	jmp	LBB0_19
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 56(%r15)
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_DBG
	movq	56(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	$0, 56(%r15)
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%r15)
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	callq	_DBG
	movq	48(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	$0, 48(%r15)
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%r15)
	leaq	L_.str.7(%rip), %rdi
	movq	%rax, %rsi
	callq	_DBG
	movq	32(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	$0, 32(%r15)
	xorl	%edi, %edi
	jmp	LBB0_14
LBB0_12:
	movq	32(%r15), %rdi
LBB0_14:
	callq	_clk_get_rate
	movq	%rax, 40(%r15)
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r15)
	leaq	L_.str.9(%rip), %rdi
	movq	%rax, %rsi
	callq	_DBG
	movq	16(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	$0, 16(%r15)
	xorl	%edi, %edi
	jmp	LBB0_17
LBB0_15:
	movq	16(%r15), %rdi
LBB0_17:
	callq	_clk_get_rate
	movq	%rax, 24(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	8(%r15), %rdi
	callq	_pm_runtime_use_autosuspend
	movq	8(%r15), %rdi
	movl	$200, %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	8(%r15), %rdi
	callq	_pm_runtime_enable
	movq	_gpu_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_component_add
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_19
## %bb.18:
	movl	%eax, %r15d
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_19
	.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	"failed to get irq: %d\n"

	.comm	_irq_handler,4,2                ## @irq_handler
L_.str.1:                               ## @.str.1
	.asciz	"failed to request IRQ%u: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"reg"

L_.str.3:                               ## @.str.3
	.asciz	"clk_reg: %p"

L_.str.4:                               ## @.str.4
	.asciz	"bus"

L_.str.5:                               ## @.str.5
	.asciz	"clk_bus: %p"

L_.str.6:                               ## @.str.6
	.asciz	"core"

L_.str.7:                               ## @.str.7
	.asciz	"clk_core: %p"

L_.str.8:                               ## @.str.8
	.asciz	"shader"

L_.str.9:                               ## @.str.9
	.asciz	"clk_shader: %p"

	.comm	_gpu_ops,4,2                    ## @gpu_ops
L_.str.10:                              ## @.str.10
	.asciz	"failed to register component: %d\n"

	.no_dead_strip	_etnaviv_gpu_platform_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etnaviv_gpu_platform_probe
_etnaviv_gpu_platform_probe:            ; @etnaviv_gpu_platform_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	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #8]
	add	x0, x0, #76
	bl	_mutex_init
	add	x0, x20, #72
	bl	_mutex_init
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20, #64]
	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_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_21
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	str	x0, [x20]
	tbnz	x0, #63, LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, _irq_handler@GOTPAGE
Lloh7:
	ldr	x8, [x8, _irq_handler@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldr	x0, [x20, #8]
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_9
; %bb.6:
	mov	x21, x0
	ldr	w2, [x20]
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_7:
	bl	_dev_err
	b	LBB0_21
LBB0_8:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	ldr	w21, [x20]
	b	LBB0_21
LBB0_9:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x1, x0
	str	x0, [x20, #56]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DBG
	ldr	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	str	xzr, [x20, #56]
LBB0_11:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x1, x0
	str	x0, [x20, #48]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DBG
	ldr	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
	str	xzr, [x20, #48]
LBB0_13:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x1, x0
	str	x0, [x20, #32]
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DBG
	ldr	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, #0
	str	xzr, [x20, #32]
	b	LBB0_16
LBB0_15:
	ldr	x0, [x20, #32]
LBB0_16:
	bl	_clk_get_rate
	str	x0, [x20, #40]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x1, x0
	str	x0, [x20, #16]
Lloh27:
	adrp	x0, l_.str.9@PAGE
Lloh28:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DBG
	ldr	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, #0
	str	xzr, [x20, #16]
	b	LBB0_19
LBB0_18:
	ldr	x0, [x20, #16]
LBB0_19:
	bl	_clk_get_rate
	str	x0, [x20, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	ldr	x0, [x20, #8]
	bl	_pm_runtime_use_autosuspend
	ldr	x0, [x20, #8]
	mov	w1, #200
	bl	_pm_runtime_set_autosuspend_delay
	ldr	x0, [x20, #8]
	bl	_pm_runtime_enable
Lloh29:
	adrp	x1, _gpu_ops@GOTPAGE
Lloh30:
	ldr	x1, [x1, _gpu_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_component_add
	tbnz	w0, #31, LBB0_22
; %bb.20:
	mov	w21, #0
LBB0_21:
	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_22:
	mov	x21, x0
Lloh31:
	adrp	x1, l_.str.10@PAGE
Lloh32:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.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	"failed to get irq: %d\n"

	.comm	_irq_handler,4,2                ; @irq_handler
l_.str.1:                               ; @.str.1
	.asciz	"failed to request IRQ%u: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"reg"

l_.str.3:                               ; @.str.3
	.asciz	"clk_reg: %p"

l_.str.4:                               ; @.str.4
	.asciz	"bus"

l_.str.5:                               ; @.str.5
	.asciz	"clk_bus: %p"

l_.str.6:                               ; @.str.6
	.asciz	"core"

l_.str.7:                               ; @.str.7
	.asciz	"clk_core: %p"

l_.str.8:                               ; @.str.8
	.asciz	"shader"

l_.str.9:                               ; @.str.9
	.asciz	"clk_shader: %p"

	.comm	_gpu_ops,4,2                    ; @gpu_ops
l_.str.10:                              ; @.str.10
	.asciz	"failed to register component: %d\n"

	.no_dead_strip	_etnaviv_gpu_platform_probe
.subsections_via_symbols
