	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adreno_request_fw              ## -- Begin function adreno_request_fw
	.p2align	4, 0x90
_adreno_request_fw:                     ## @adreno_request_fw
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movq	$0, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_kasprintf
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_FW_LOCATION_UNKNOWN@GOTPCREL(%rip), %rcx
	movq	_FW_LOCATION_NEW@GOTPCREL(%rip), %rdx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	cmpq	(%rdx), %rax
	je	LBB0_3
## %bb.9:
	movq	_FW_LOCATION_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.14:
	movq	_FW_LOCATION_HELPER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
	jmp	LBB0_18
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	movl	(%r13), %edx
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_request_firmware_direct
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movq	_FW_LOCATION_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_10:
	movl	(%r13), %edx
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_request_firmware_direct
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movq	_FW_LOCATION_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_15:
	movl	(%r13), %edx
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movq	_FW_LOCATION_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_18:
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	jmp	LBB0_19
LBB0_7:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	jmp	LBB0_8
LBB0_4:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_DRM_DEV_INFO
	movq	_FW_LOCATION_NEW@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_DRM_DEV_INFO
	movq	_FW_LOCATION_LEGACY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
LBB0_8:
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movl	%r12d, %edi
LBB0_19:
	callq	_ERR_PTR
	movq	%rax, -48(%rbp)
	jmp	LBB0_20
LBB0_16:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	callq	_DRM_DEV_INFO
	movq	_FW_LOCATION_HELPER@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_20:
	movq	%r14, %rdi
	callq	_kfree
	movq	-48(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qcom/%s"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FW_LOCATION_UNKNOWN,8,3        ## @FW_LOCATION_UNKNOWN
	.comm	_FW_LOCATION_NEW,8,3            ## @FW_LOCATION_NEW
L_.str.1:                               ## @.str.1
	.asciz	"loaded %s from new location\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to load %s: %d\n"

	.comm	_FW_LOCATION_LEGACY,8,3         ## @FW_LOCATION_LEGACY
L_.str.3:                               ## @.str.3
	.asciz	"loaded %s from legacy location\n"

	.comm	_FW_LOCATION_HELPER,8,3         ## @FW_LOCATION_HELPER
L_.str.4:                               ## @.str.4
	.asciz	"loaded %s with helper\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to load %s\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adreno_request_fw              ; -- Begin function adreno_request_fw
	.p2align	2
_adreno_request_fw:                     ; @adreno_request_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_kasprintf
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
Lloh5:
	adrp	x24, _FW_LOCATION_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _FW_LOCATION_UNKNOWN@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh7:
	adrp	x25, _FW_LOCATION_NEW@GOTPAGE
Lloh8:
	ldr	x25, [x25, _FW_LOCATION_NEW@GOTPAGEOFF]
	ldr	x10, [x25]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.2:
	ldr	w2, [x23]
	add	x0, sp, #8
	mov	x1, x19
	bl	_request_firmware_direct
	cbz	w0, LBB0_16
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_6
	b	LBB0_13
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
LBB0_5:
Lloh12:
	adrp	x9, _FW_LOCATION_LEGACY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FW_LOCATION_LEGACY@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_6:
	ldr	w2, [x23]
	add	x0, sp, #8
	mov	x1, x21
	bl	_request_firmware_direct
	cbz	w0, LBB0_17
; %bb.7:
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:
	mov	x22, x0
	ldr	w0, [x23]
	str	x22, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	b	LBB0_14
LBB0_9:
Lloh17:
	adrp	x9, _FW_LOCATION_HELPER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FW_LOCATION_HELPER@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_10:
	ldr	w2, [x23]
	add	x0, sp, #8
	mov	x1, x19
	bl	_request_firmware
	cbz	w0, LBB0_18
; %bb.11:
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_12:
	ldr	w0, [x23]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x21
	bl	_DRM_DEV_ERROR
Lloh22:
	adrp	x8, _ENOENT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_13:
	mov	x22, x0
	ldr	w0, [x23]
	str	x22, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
LBB0_14:
	bl	_DRM_DEV_ERROR
	mov	x0, x22
LBB0_15:
	bl	_ERR_PTR
	str	x0, [sp, #8]
	b	LBB0_21
LBB0_16:
	ldr	w0, [x23]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_DRM_DEV_INFO
	ldr	x8, [x25]
	b	LBB0_20
LBB0_17:
	ldr	w0, [x23]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_DRM_DEV_INFO
Lloh31:
	adrp	x8, _FW_LOCATION_LEGACY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FW_LOCATION_LEGACY@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
	ldr	w0, [x23]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_DRM_DEV_INFO
Lloh35:
	adrp	x8, _FW_LOCATION_HELPER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FW_LOCATION_HELPER@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
LBB0_20:
	str	x8, [x20]
LBB0_21:
	mov	x0, x19
	bl	_kfree
	ldr	x0, [sp, #8]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qcom/%s"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FW_LOCATION_UNKNOWN,8,3        ; @FW_LOCATION_UNKNOWN
	.comm	_FW_LOCATION_NEW,8,3            ; @FW_LOCATION_NEW
l_.str.1:                               ; @.str.1
	.asciz	"loaded %s from new location\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to load %s: %d\n"

	.comm	_FW_LOCATION_LEGACY,8,3         ; @FW_LOCATION_LEGACY
l_.str.3:                               ; @.str.3
	.asciz	"loaded %s from legacy location\n"

	.comm	_FW_LOCATION_HELPER,8,3         ; @FW_LOCATION_HELPER
l_.str.4:                               ; @.str.4
	.asciz	"loaded %s with helper\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to load %s\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
