	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_g_ext_ctrls
_pvr2_g_ext_ctrls:                      ## @pvr2_g_ext_ctrls
	.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
	cmpl	$0, (%rdx)
	je	LBB0_6
## %bb.1:
	movq	%rdx, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movl	$16, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	leaq	-44(%rbp), %rsi
	callq	_pvr2_ctrl_get_def
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, -8(%r15,%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, -16(%r15,%rbx)
	incq	%r13
	movl	(%r12), %eax
	addq	$24, %rbx
	cmpq	%rax, %r13
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r15
	movl	(%r15,%rbx), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_v4l
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rcx
	movq	_V4L2_CTRL_WHICH_DEF_VAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	leaq	-44(%rbp), %rsi
	callq	_pvr2_ctrl_get_value
	testl	%eax, %eax
	je	LBB0_5
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_5
LBB0_10:
	movl	%r13d, 16(%r12)
	jmp	LBB0_11
LBB0_6:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_WHICH_DEF_VAL,8,3    ## @V4L2_CTRL_WHICH_DEF_VAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pvr2_g_ext_ctrls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_g_ext_ctrls
_pvr2_g_ext_ctrls:                      ; @pvr2_g_ext_ctrls
	.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
	ldr	w8, [x2]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x22, #0
	mov	x21, #0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh0:
	adrp	x23, _EINVAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
Lloh2:
	adrp	x24, _V4L2_CTRL_WHICH_DEF_VAL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _V4L2_CTRL_WHICH_DEF_VAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_pvr2_ctrl_get_def
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x25, x22
	str	xzr, [x8, #8]
	ldr	w9, [sp, #12]
	str	w9, [x8]
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x22, x22, #24
	cmp	x21, x8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #24]
	add	x8, x25, x22
	ldr	w1, [x8, #16]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_v4l
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, sp, #12
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_pvr2_ctrl_get_value
	cbz	w0, LBB0_3
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	neg	w0, w8
	cbz	w0, LBB0_3
LBB0_8:
	str	w21, [x19, #16]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_WHICH_DEF_VAL,8,3    ; @V4L2_CTRL_WHICH_DEF_VAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pvr2_g_ext_ctrls
.subsections_via_symbols
