	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdn_dp_request_firmware
_cdn_dp_request_firmware:               ## @cdn_dp_request_firmware
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_CDN_FW_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	leaq	4(%r12), %r13
	movq	%r13, %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	jne	LBB0_10
## %bb.1:
	addq	%r14, %r15
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	_jiffies@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %r15
	leaq	12(%r12), %r13
	movl	$1000, %r14d                    ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CDN_DP_FIRMWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	%r13, %rdi
	callq	_request_firmware
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_msleep
	addq	%r14, %r14
	movq	(%r15), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	movl	8(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_9
LBB0_8:
	movl	$1, (%r12)
	xorl	%ebx, %ebx
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_lock
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_CDN_FW_TIMEOUT_MS,4,2          ## @CDN_FW_TIMEOUT_MS
	.comm	_CDN_DP_FIRMWARE,4,2            ## @CDN_DP_FIRMWARE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to request firmware: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Timed out trying to load firmware\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_cdn_dp_request_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdn_dp_request_firmware
_cdn_dp_request_firmware:               ; @cdn_dp_request_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x25, _jiffies@GOTPAGE
Lloh1:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x22, [x25]
Lloh2:
	adrp	x8, _CDN_FW_TIMEOUT_MS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CDN_FW_TIMEOUT_MS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x21, x0
	add	x19, x20, #4
	mov	x0, x19
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_11
LBB0_2:
	add	x21, x21, x22
	mov	x0, x19
	bl	_mutex_unlock
	ldr	x0, [x25]
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_6
; %bb.3:
	add	x23, x20, #12
	mov	w24, #1000
Lloh5:
	adrp	x26, _CDN_DP_FIRMWARE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _CDN_DP_FIRMWARE@GOTPAGEOFF]
Lloh7:
	adrp	x27, _ENOENT@GOTPAGE
Lloh8:
	ldr	x27, [x27, _ENOENT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	ldr	w2, [x20, #8]
	mov	x0, x23
	bl	_request_firmware
	ldr	w8, [x27]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_msleep
	lsl	x24, x24, #1
	ldr	x0, [x25]
	mov	x1, x21
	bl	_time_before
	cbnz	x0, LBB0_4
LBB0_6:
	ldr	w0, [x20, #8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_ERROR
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_7:
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w0, [x20, #8]
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_10
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
LBB0_10:
	mov	x0, x19
	bl	_mutex_lock
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_CDN_FW_TIMEOUT_MS,4,2          ; @CDN_FW_TIMEOUT_MS
	.comm	_CDN_DP_FIRMWARE,4,2            ; @CDN_DP_FIRMWARE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to request firmware: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Timed out trying to load firmware\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_cdn_dp_request_firmware
.subsections_via_symbols
