	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et8ek8_enum_mbus_code
_et8ek8_enum_mbus_code:                 ## @et8ek8_enum_mbus_code
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_meta_reglist@GOTPCREL(%rip), %rdi
	callq	_et8ek8_reglist_first
	movq	%rax, %rbx
	movq	_MAX_FMTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movl	(%r14), %r8d
	cmpl	%r15d, %r8d
	jge	LBB0_13
## %bb.1:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.2:
	movq	_ET8EK8_REGLIST_MODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	xorl	%r10d, %r10d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi), %rcx
	cmpl	%r10d, %r8d
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r10d, %rdx
	movq	%rcx, (%rax,%rdx,8)
	incl	%r10d
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpq	%r9, (%rdi)
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r10d, %r10d
	jle	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi), %rdx
	movl	%r10d, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, (%rax,%rcx,8)
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_8
	jmp	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r10d, %ecx
	je	LBB0_10
	jmp	LBB0_12
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_17
## %bb.15:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rcx, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_meta_reglist,4,2               ## @meta_reglist
	.comm	_MAX_FMTS,4,2                   ## @MAX_FMTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ET8EK8_REGLIST_MODE,8,3        ## @ET8EK8_REGLIST_MODE
	.no_dead_strip	_et8ek8_enum_mbus_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et8ek8_enum_mbus_code
_et8ek8_enum_mbus_code:                 ; @et8ek8_enum_mbus_code
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #16
	mov	x19, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x0, _meta_reglist@GOTPAGE
Lloh4:
	ldr	x0, [x0, _meta_reglist@GOTPAGEOFF]
	bl	_et8ek8_reglist_first
Lloh5:
	adrp	x8, _MAX_FMTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_FMTS@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x8]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x8, x9, x8
	mov	sp, x8
	ldr	w9, [x19]
	cmp	w9, w12
	b.ge	LBB0_13
; %bb.1:
	ldr	x12, [x0]
	cbz	x12, LBB0_13
; %bb.2:
	mov	w10, #0
Lloh10:
	adrp	x11, _ET8EK8_REGLIST_MODE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ET8EK8_REGLIST_MODE@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x12, #8]
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x12, [x8, w10, sxtw #3]
	add	w10, w10, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x0, #8]!
	cbz	x12, LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x13, [x12]
	cmp	x13, x11
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w10, #1
	b.lt	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x13, #0
	ldr	x14, [x12, #8]
	mov	w15, w10
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x16, [x8, x13, lsl #3]
	cmp	x16, x14
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x13, x13, #1
	cmp	x15, x13
	b.ne	LBB0_9
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w13, #0
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w13, w10
	b.eq	LBB0_3
	b	LBB0_5
LBB0_13:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w0, #0
	str	x12, [x19, #8]
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_meta_reglist,4,2               ; @meta_reglist
	.comm	_MAX_FMTS,4,2                   ; @MAX_FMTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ET8EK8_REGLIST_MODE,8,3        ; @ET8EK8_REGLIST_MODE
	.no_dead_strip	_et8ek8_enum_mbus_code
.subsections_via_symbols
