	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_device_mapping
_parse_device_mapping:                  ## @parse_device_mapping
	.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, %rax
	movq	%rdi, %r14
	movq	_BDB_GENERAL_DEFINITIONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	cmpl	$4, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_get_blocksize
	cltq
	movabsq	$17179869168, %rdx              ## imm = 0x3FFFFFFF0
	addq	%rax, %rdx
	shrq	$2, %rdx
	leaq	L_.str.2(%rip), %rdi
	testl	%edx, %edx
	jle	LBB0_2
## %bb.6:
	movq	8(%r15), %rax
	movl	%edx, %r12d
	cmpq	$8, %r12
	jae	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_8:
	andl	$7, %edx
	movq	%r12, %rcx
	subq	%rdx, %rcx
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pcmpeqd	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rsi,4), %xmm4
	movdqu	16(%rax,%rsi,4), %xmm5
	pcmpeqd	%xmm0, %xmm4
	paddd	%xmm4, %xmm2
	pcmpeqd	%xmm0, %xmm5
	paddd	%xmm5, %xmm1
	psubd	%xmm3, %xmm2
	psubd	%xmm3, %xmm1
	addq	$8, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_9
## %bb.10:
	paddd	%xmm2, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	testq	%rdx, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$1, (%rax,%rcx,4)
	sbbl	$-1, %ebx
	incq	%rcx
	cmpq	%rcx, %r12
	jne	LBB0_11
LBB0_12:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.13:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movl	%ebx, (%r14)
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$4, %rbx
	decq	%r12
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	cmpl	$0, (%rsi,%rbx)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movslq	%r13d, %r13
	leaq	(,%r13,4), %rdi
	addq	8(%r14), %rdi
	incl	%r13d
	addq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_18
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_BDB_GENERAL_DEFINITIONS,4,2    ## @BDB_GENERAL_DEFINITIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No general definition block is found, no devices defined.\n"

L_.str.1:                               ## @.str.1
	.asciz	"different child size is found. Invalid.\n"

L_.str.2:                               ## @.str.2
	.asciz	"no child dev is parsed from VBT\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"No memory space for child device\n"

	.no_dead_strip	_parse_device_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_device_mapping
_parse_device_mapping:                  ; @parse_device_mapping
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _BDB_GENERAL_DEFINITIONS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BDB_GENERAL_DEFINITIONS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_find_section
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #4
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_get_blocksize
	mov	x8, #17179869168
	add	x9, x8, w0, sxtw
	lsr	x8, x9, #2
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.3:
	ldr	x8, [x20, #8]
	ubfx	x22, x9, #2, #32
	cmp	x22, #16
	b.hs	LBB0_7
; %bb.4:
	mov	x9, #0
	mov	w21, #0
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_21
LBB0_6:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_7:
	ubfx	x10, x9, #2, #4
	sub	x9, x22, x10
	add	x11, x8, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	cmtst.4s	v4, v4, v4
	cmtst.4s	v5, v5, v5
	cmtst.4s	v6, v6, v6
	cmtst.4s	v7, v7, v7
	sub.4s	v0, v0, v4
	sub.4s	v1, v1, v5
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	subs	x12, x12, #16
	b.ne	LBB0_8
; %bb.9:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w21, s0
	cbz	x10, LBB0_12
LBB0_10:
	add	x8, x8, x9, lsl #2
	sub	x9, x9, x22
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #4
	cmp	w10, #0
	cinc	w21, w21, ne
	adds	x9, x9, #1
	b.lo	LBB0_11
LBB0_12:
	cbz	w21, LBB0_18
; %bb.13:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_20
; %bb.14:
	mov	x23, #0
	mov	w24, #0
	str	w21, [x19]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x23, x23, #4
	subs	x22, x22, #1
	b.eq	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w9, [x8, x23]
	cbz	w9, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, w24, sxtw #2
	add	w24, w24, #1
	add	x1, x8, x23
	mov	w2, #4
	bl	_memcpy
	b	LBB0_15
LBB0_18:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_19:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_21:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DRM_DEBUG_KMS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BDB_GENERAL_DEFINITIONS,4,2    ; @BDB_GENERAL_DEFINITIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No general definition block is found, no devices defined.\n"

l_.str.1:                               ; @.str.1
	.asciz	"different child size is found. Invalid.\n"

l_.str.2:                               ; @.str.2
	.asciz	"no child dev is parsed from VBT\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"No memory space for child device\n"

	.no_dead_strip	_parse_device_mapping
.subsections_via_symbols
