	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_csr_fw_css
_parse_csr_fw_css:                      ## @parse_csr_fw_css
	.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
	cmpq	$15, %rdx
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_9
LBB0_2:
	movq	%rsi, %rbx
	movl	(%rsi), %esi
	cmpl	$4, %esi
	jne	LBB0_3
## %bb.4:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	cmpq	%rax, %rdi
	je	LBB0_6
## %bb.8:
	callq	_CSR_VERSION_MAJOR
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	callq	_CSR_VERSION_MINOR
	movl	%eax, %r12d
	movq	(%r14), %rdi
	callq	_CSR_VERSION_MAJOR
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_CSR_VERSION_MINOR
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_DRM_INFO
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	shll	$2, %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_9
LBB0_5:
	movq	%rdi, %rax
LBB0_6:
	movq	%rax, 8(%r14)
	movl	$16, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Truncated DMC firmware, refusing.\n"

L_.str.1:                               ## @.str.1
	.asciz	"DMC firmware has wrong CSS header length (%u bytes)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Refusing to load DMC firmware v%u.%u, please use v%u.%u\n"

	.no_dead_strip	_parse_csr_fw_css
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_csr_fw_css
_parse_csr_fw_css:                      ; @parse_csr_fw_css
	.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
	cmp	x2, #15
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	mov	x20, x1
	ldr	w8, [x1]
	cmp	w8, #4
	b.ne	LBB0_6
; %bb.3:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x20, #8]
	cbz	x8, LBB0_10
; %bb.4:
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.5:
	bl	_CSR_VERSION_MAJOR
	mov	x21, x0
	ldr	x0, [x20, #8]
	bl	_CSR_VERSION_MINOR
	mov	x20, x0
	ldr	x0, [x19]
	bl	_CSR_VERSION_MAJOR
	mov	x22, x0
	ldr	x0, [x19]
	bl	_CSR_VERSION_MINOR
	mov	x4, x0
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_DRM_INFO
	b	LBB0_8
LBB0_6:
	lsl	w8, w8, #2
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_DRM_ERROR
LBB0_8:
	mov	w0, #0
LBB0_9:
	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_10:
	mov	x8, x0
LBB0_11:
	str	x8, [x19, #8]
	mov	w0, #16
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Truncated DMC firmware, refusing.\n"

l_.str.1:                               ; @.str.1
	.asciz	"DMC firmware has wrong CSS header length (%u bytes)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Refusing to load DMC firmware v%u.%u, please use v%u.%u\n"

	.no_dead_strip	_parse_csr_fw_css
.subsections_via_symbols
