	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalcam_next_drc
_mmalcam_next_drc:                      ## @mmalcam_next_drc
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	-76(%rbp), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, -76(%rbp)
	movq	_MMAL_PARAMETER_DYNAMIC_RANGE_COMPRESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movups	%xmm0, -52(%rbp)
	movl	%eax, -56(%rbp)
	movl	_mmalcam_next_drc.index(%rip), %ebx
	incl	%ebx
	movl	%ebx, _mmalcam_next_drc.index(%rip)
	leaq	_mmalcam_next_drc.drc_setting(%rip), %r15
	movq	%r15, %rdi
	callq	_countof
	cmpl	%eax, %ebx
	jae	LBB0_2
## %bb.1:
	movl	_mmalcam_next_drc.index(%rip), %eax
	jmp	LBB0_3
LBB0_2:
	movl	$0, _mmalcam_next_drc.index(%rip)
	xorl	%eax, %eax
LBB0_3:
	movl	(%r15,%rax,4), %eax
	movl	%eax, -80(%rbp)
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_mmal_port_parameter_set
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.6:
	leaq	-52(%rbp), %rsi
	movl	(%r12), %edi
	callq	_mmal_port_parameter_get
	cmpq	(%r14), %rax
	jne	LBB0_7
## %bb.8:
	leaq	-80(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movl	$20, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movslq	-80(%rbp), %rsi
	movl	-56(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_11:
	movq	_MMAL_FALSE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MMAL_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @mmalcam_next_drc.drc_setting
_mmalcam_next_drc.drc_setting:
	.long	128                             ## 0x80
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	131                             ## 0x83

.zerofill __DATA,__bss,_mmalcam_next_drc.index,4,2 ## @mmalcam_next_drc.index
	.comm	_MMAL_PARAMETER_DYNAMIC_RANGE_COMPRESSION,4,2 ## @MMAL_PARAMETER_DYNAMIC_RANGE_COMPRESSION
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set drc, %d"

	.comm	_MMAL_FALSE,4,2                 ## @MMAL_FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to retrieve drc, %d"

L_.str.2:                               ## @.str.2
	.asciz	"DRC set (%d) was not retrieved (%d)"

	.comm	_MMAL_TRUE,4,2                  ## @MMAL_TRUE
	.no_dead_strip	_mmalcam_next_drc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalcam_next_drc
_mmalcam_next_drc:                      ; @mmalcam_next_drc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	add	x8, sp, #40
	orr	x20, x8, #0x4
	stur	xzr, [sp, #52]
	stur	xzr, [sp, #44]
Lloh0:
	adrp	x8, _MMAL_PARAMETER_DYNAMIC_RANGE_COMPRESSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_PARAMETER_DYNAMIC_RANGE_COMPRESSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stur	xzr, [sp, #28]
	stur	xzr, [sp, #20]
	str	w8, [sp, #16]
	adrp	x22, _mmalcam_next_drc.index@PAGE
	ldr	w8, [x22, _mmalcam_next_drc.index@PAGEOFF]
	add	w23, w8, #1
	str	w23, [x22, _mmalcam_next_drc.index@PAGEOFF]
Lloh3:
	adrp	x21, _mmalcam_next_drc.drc_setting@PAGE
Lloh4:
	add	x21, x21, _mmalcam_next_drc.drc_setting@PAGEOFF
	mov	x0, x21
	bl	_countof
	cmp	w23, w0
	b.hs	LBB0_2
; %bb.1:
	ldr	w8, [x22, _mmalcam_next_drc.index@PAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x8, #0
	str	wzr, [x22, _mmalcam_next_drc.index@PAGEOFF]
LBB0_3:
	ldr	w8, [x21, x8, lsl #2]
	str	w8, [sp, #40]
	ldr	w0, [x19]
	mov	x1, x20
	bl	_mmal_port_parameter_set
	mov	x1, x0
Lloh5:
	adrp	x20, _MMAL_SUCCESS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x1, x8
	b.ne	LBB0_7
; %bb.4:
	add	x8, sp, #16
	orr	x1, x8, #0x4
	ldr	w0, [x19]
	bl	_mmal_port_parameter_get
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	add	x0, sp, #40
	add	x1, sp, #16
	mov	w2, #20
	bl	_memcmp
	cbz	x0, LBB0_11
; %bb.6:
	ldrsw	x1, [sp, #40]
	ldr	w8, [sp, #16]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_LOG_ERROR
Lloh13:
	adrp	x8, _MMAL_FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MMAL_FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
Lloh15:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @mmalcam_next_drc.drc_setting
_mmalcam_next_drc.drc_setting:
	.long	128                             ; 0x80
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	131                             ; 0x83

.zerofill __DATA,__bss,_mmalcam_next_drc.index,4,2 ; @mmalcam_next_drc.index
	.comm	_MMAL_PARAMETER_DYNAMIC_RANGE_COMPRESSION,4,2 ; @MMAL_PARAMETER_DYNAMIC_RANGE_COMPRESSION
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set drc, %d"

	.comm	_MMAL_FALSE,4,2                 ; @MMAL_FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to retrieve drc, %d"

l_.str.2:                               ; @.str.2
	.asciz	"DRC set (%d) was not retrieved (%d)"

	.comm	_MMAL_TRUE,4,2                  ; @MMAL_TRUE
	.no_dead_strip	_mmalcam_next_drc
.subsections_via_symbols
