	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et8ek8_reglist_find_mode_fmt
_et8ek8_reglist_find_mode_fmt:          ## @et8ek8_reglist_find_mode_fmt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_et8ek8_reglist_first
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	movq	_ET8EK8_REGLIST_MODE@GOTPCREL(%rip), %r12
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %r15
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-72(%rbp), %rsi
	callq	_et8ek8_reglist_to_mbus
	movl	(%r14), %edi
	movl	-72(%rbp), %esi
	callq	_min
	movl	%eax, %r13d
	movl	4(%r14), %edi
	movl	-68(%rbp), %esi
	callq	_min
	movl	-68(%rbp), %ecx
	imull	-72(%rbp), %ecx
	movl	4(%r14), %edx
	imull	(%r14), %edx
	imull	%r13d, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	addl	%edx, %ecx
	movq	8(%r14), %rax
	cmpq	-64(%rbp), %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r15, %r15
	jne	LBB0_11
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmovneq	%rax, %r15
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ET8EK8_REGLIST_MODE,8,3        ## @ET8EK8_REGLIST_MODE
	.no_dead_strip	_et8ek8_reglist_find_mode_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et8ek8_reglist_find_mode_fmt
_et8ek8_reglist_find_mode_fmt:          ; @et8ek8_reglist_find_mode_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	bl	_et8ek8_reglist_first
	mov	x20, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x23, #0
	mov	x22, #0
	mov	w25, #-1
Lloh0:
	adrp	x24, _ET8EK8_REGLIST_MODE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ET8EK8_REGLIST_MODE@GOTPAGEOFF]
	mov	w26, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #8]!
	cbz	x0, LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, sp
	bl	_et8ek8_reglist_to_mbus
	ldr	w0, [x19]
	ldr	w1, [sp]
	bl	_min
	mov	x21, x0
	ldr	w0, [x19, #4]
	ldr	w1, [sp, #4]
	bl	_min
	ldp	w8, w9, [sp]
	mul	w8, w9, w8
	ldp	w9, w10, [x19]
	mul	w11, w21, w0
	sub	w8, w8, w11, lsl #1
	madd	w8, w10, w9, w8
	ldr	x9, [x19, #8]
	ldr	x10, [sp, #8]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w26
	ccmp	x22, #0, #4, hs
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x20]
	mov	x26, x8
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w25
	ccmp	x23, #0, #4, hs
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x20]
	mov	x25, x8
	b	LBB0_2
LBB0_9:
	mov	x22, #0
	mov	x23, #0
LBB0_10:
	cmp	x22, #0
	csel	x0, x23, x22, eq
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ET8EK8_REGLIST_MODE,8,3        ; @ET8EK8_REGLIST_MODE
	.no_dead_strip	_et8ek8_reglist_find_mode_fmt
.subsections_via_symbols
