	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adreno_bind
_adreno_bind:                           ## @adreno_bind
	.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, %r14
	movq	%rsi, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	8(%rax), %r13
	leaq	_adreno_bind.config(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_find_chipid
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, (%r14)
	movq	%r14, %rdi
	callq	_to_platform_device
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_set_gpu_pdev
	movq	_adreno_bind.config(%rip), %rdi
	movq	_adreno_bind.config+8(%rip), %rsi
	callq	_adreno_info
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movl	_adreno_bind.config(%rip), %esi
	movl	_adreno_bind.config+12(%rip), %edx
	movl	_adreno_bind.config+8(%rip), %ecx
	movl	_adreno_bind.config+4(%rip), %r8d
	leaq	L_.str.1(%rip), %rdi
	callq	_DBG
	xorl	%eax, %eax
	cmpl	$2, _adreno_bind.config(%rip)
	sete	%al
	movl	%eax, (%r13)
	movq	%r12, %rdi
	callq	*(%r15)
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movl	(%r12), %edi
	movl	_adreno_bind.config(%rip), %edx
	movl	_adreno_bind.config+12(%rip), %ecx
	movl	_adreno_bind.config+8(%rip), %r8d
	movl	_adreno_bind.config+4(%rip), %r9d
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_adreno_bind.config,16,3 ## @adreno_bind.config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown GPU revision: %u.%u.%u.%u\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"Found GPU: %u.%u.%u.%u"

L_.str.2:                               ## @.str.2
	.asciz	"failed to load adreno gpu\n"

	.no_dead_strip	_adreno_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adreno_bind
_adreno_bind:                           ; @adreno_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x0, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x21, _adreno_bind.config@PAGE
Lloh1:
	add	x21, x21, _adreno_bind.config@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_find_chipid
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	str	x21, [x19]
	mov	x0, x19
	bl	_to_platform_device
	mov	x1, x0
	mov	x0, x20
	bl	_set_gpu_pdev
	ldp	x0, x1, [x21]
	bl	_adreno_info
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, x0
	ldp	w3, w2, [x21, #8]
	ldp	w1, w4, [x21]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
	ldr	w8, [x21]
	cmp	w8, #2
	cset	w8, eq
	str	w8, [x23]
	ldr	x8, [x22]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_5:
	ldr	w0, [x20]
	ldp	w9, w8, [x21, #8]
	ldp	w10, w11, [x21]
	stp	x9, x11, [sp, #16]
	stp	x10, x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
	mov	w0, #0
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_adreno_bind.config,16,3 ; @adreno_bind.config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown GPU revision: %u.%u.%u.%u\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"Found GPU: %u.%u.%u.%u"

l_.str.2:                               ; @.str.2
	.asciz	"failed to load adreno gpu\n"

	.no_dead_strip	_adreno_bind
.subsections_via_symbols
