	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isc_set_fmt
_isc_set_fmt:                           ## @isc_set_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$0, -40(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	$0, -28(%rbp)
	leaq	-28(%rbp), %rdx
	callq	_isc_try_fmt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	-28(%rbp), %edx
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_v4l2_fill_mbus_format
	movq	32(%r14), %rax
	movl	(%rax), %edi
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	(%r15), %eax
	movl	%eax, 28(%r14)
	movq	8(%r14), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	cmpq	%rcx, %rax
	je	LBB0_8
## %bb.7:
	movq	_HIST_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%r14, %rdi
	callq	_isc_reset_awb_ctrls
	movq	8(%r14), %rax
	jmp	LBB0_8
LBB0_2:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_4:
	xorl	%eax, %eax
LBB0_8:
	movq	%rax, 16(%r14)
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_v4l2_dbg
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
	.comm	_HIST_INIT,4,2                  ## @HIST_INIT
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"New ISC configuration in place\n"

	.no_dead_strip	_isc_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isc_set_fmt
_isc_set_fmt:                           ; @isc_set_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	str	wzr, [sp, #4]
	add	x2, sp, #4
	bl	_isc_try_fmt
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w2, [sp, #4]
	add	x0, sp, #8
	mov	x1, x20
	bl	_v4l2_fill_mbus_format
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _pad@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _set_fmt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x3, #0
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w8, [x20]
	str	w8, [x19, #28]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_6
; %bb.4:
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _HIST_INIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HIST_INIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_isc_reset_awb_ctrls
	ldr	x8, [x19, #8]
LBB0_6:
	str	x8, [x19, #16]
Lloh12:
	adrp	x8, _debug@GOTPAGE
Lloh13:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
	.comm	_HIST_INIT,4,2                  ; @HIST_INIT
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"New ISC configuration in place\n"

	.no_dead_strip	_isc_set_fmt
.subsections_via_symbols
