	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi_phy_parse_lanes           ## -- Begin function hdmi_phy_parse_lanes
	.p2align	4, 0x90
_hdmi_phy_parse_lanes:                  ## @hdmi_phy_parse_lanes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %edx
	cmpq	$8, %rdx
	jae	LBB0_1
## %bb.2:
	movl	4(%rsi), %eax
	cmpl	$8, %eax
	jb	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	testb	$1, %dl
	jne	LBB0_4
## %bb.5:
	leal	1(%rdx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_1
## %bb.6:
	xorl	%r9d, %r9d
	jmp	LBB0_7
LBB0_4:
	leal	-1(%rdx), %ecx
	movl	$1, %r9d
	cmpl	%ecx, %eax
	jne	LBB0_1
LBB0_7:
	shrq	%rdx
	movq	(%rdi), %r8
	movl	$0, (%r8,%rdx,4)
	movq	8(%rdi), %rax
	movq	%r9, (%rax,%rdx,8)
	movl	8(%rsi), %edx
	cmpq	$7, %rdx
	ja	LBB0_1
## %bb.8:
	movl	12(%rsi), %edi
	cmpl	$7, %edi
	ja	LBB0_1
## %bb.9:
	testb	$1, %dl
	jne	LBB0_10
## %bb.11:
	leal	1(%rdx), %ecx
	cmpl	%ecx, %edi
	jne	LBB0_1
## %bb.12:
	xorl	%r9d, %r9d
	jmp	LBB0_13
LBB0_10:
	leal	-1(%rdx), %ecx
	movl	$1, %r9d
	cmpl	%ecx, %edi
	jne	LBB0_1
LBB0_13:
	shrq	%rdx
	movl	$1, (%r8,%rdx,4)
	movq	%r9, (%rax,%rdx,8)
	movl	16(%rsi), %edx
	cmpq	$7, %rdx
	ja	LBB0_1
## %bb.14:
	movl	20(%rsi), %edi
	cmpl	$7, %edi
	ja	LBB0_1
## %bb.15:
	testb	$1, %dl
	jne	LBB0_16
## %bb.17:
	leal	1(%rdx), %ecx
	cmpl	%ecx, %edi
	jne	LBB0_1
## %bb.18:
	xorl	%r9d, %r9d
	jmp	LBB0_19
LBB0_16:
	leal	-1(%rdx), %ecx
	movl	$1, %r9d
	cmpl	%ecx, %edi
	jne	LBB0_1
LBB0_19:
	shrq	%rdx
	movl	$2, (%r8,%rdx,4)
	movq	%r9, (%rax,%rdx,8)
	movl	24(%rsi), %edx
	cmpq	$7, %rdx
	ja	LBB0_1
## %bb.20:
	movl	28(%rsi), %esi
	cmpl	$7, %esi
	ja	LBB0_1
## %bb.21:
	testb	$1, %dl
	jne	LBB0_22
## %bb.23:
	leal	1(%rdx), %ecx
	cmpl	%ecx, %esi
	jne	LBB0_1
## %bb.24:
	xorl	%ecx, %ecx
	jmp	LBB0_25
LBB0_22:
	leal	-1(%rdx), %edi
	movl	$1, %ecx
	cmpl	%edi, %esi
	jne	LBB0_1
LBB0_25:
	shrq	%rdx
	movl	$3, (%r8,%rdx,4)
	movq	%rcx, (%rax,%rdx,8)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi_phy_parse_lanes           ; -- Begin function hdmi_phy_parse_lanes
	.p2align	2
_hdmi_phy_parse_lanes:                  ; @hdmi_phy_parse_lanes
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cmp	w8, #8
	b.hs	LBB0_29
; %bb.1:
	ldr	w9, [x1, #4]
	cmp	w9, #8
	b.hs	LBB0_29
; %bb.2:
	tbnz	w8, #0, LBB0_5
; %bb.3:
	add	w10, w8, #1
	cmp	w9, w10
	b.ne	LBB0_29
; %bb.4:
	mov	x10, #0
	b	LBB0_7
LBB0_5:
	sub	w10, w8, #1
	cmp	w9, w10
	b.ne	LBB0_29
; %bb.6:
	mov	w10, #1
LBB0_7:
	lsr	x11, x8, #1
	ldp	x8, x9, [x0]
	str	wzr, [x8, x11, lsl #2]
	str	x10, [x9, x11, lsl #3]
	ldr	w10, [x1, #8]
	cmp	w10, #7
	b.hi	LBB0_29
; %bb.8:
	ldr	w11, [x1, #12]
	cmp	w11, #7
	b.hi	LBB0_29
; %bb.9:
	tbnz	w10, #0, LBB0_12
; %bb.10:
	add	w12, w10, #1
	cmp	w11, w12
	b.ne	LBB0_29
; %bb.11:
	mov	x11, #0
	b	LBB0_14
LBB0_12:
	sub	w12, w10, #1
	cmp	w11, w12
	b.ne	LBB0_29
; %bb.13:
	mov	w11, #1
LBB0_14:
	lsr	x10, x10, #1
	mov	w12, #1
	str	w12, [x8, x10, lsl #2]
	str	x11, [x9, x10, lsl #3]
	ldr	w10, [x1, #16]
	cmp	w10, #7
	b.hi	LBB0_29
; %bb.15:
	ldr	w11, [x1, #20]
	cmp	w11, #7
	b.hi	LBB0_29
; %bb.16:
	tbnz	w10, #0, LBB0_19
; %bb.17:
	add	w12, w10, #1
	cmp	w11, w12
	b.ne	LBB0_29
; %bb.18:
	mov	x11, #0
	b	LBB0_21
LBB0_19:
	sub	w12, w10, #1
	cmp	w11, w12
	b.ne	LBB0_29
; %bb.20:
	mov	w11, #1
LBB0_21:
	lsr	x10, x10, #1
	mov	w12, #2
	str	w12, [x8, x10, lsl #2]
	str	x11, [x9, x10, lsl #3]
	ldr	w10, [x1, #24]
	cmp	w10, #7
	b.hi	LBB0_29
; %bb.22:
	ldr	w11, [x1, #28]
	cmp	w11, #7
	b.hi	LBB0_29
; %bb.23:
	tbnz	w10, #0, LBB0_26
; %bb.24:
	add	w12, w10, #1
	cmp	w11, w12
	b.ne	LBB0_29
; %bb.25:
	mov	x11, #0
	b	LBB0_28
LBB0_26:
	sub	w12, w10, #1
	cmp	w11, w12
	b.ne	LBB0_29
; %bb.27:
	mov	w11, #1
LBB0_28:
	mov	w0, #0
	lsr	x10, x10, #1
	mov	w12, #3
	str	w12, [x8, x10, lsl #2]
	str	x11, [x9, x10, lsl #3]
	ret
LBB0_29:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
