	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __s5pcsis_set_format
___s5pcsis_set_format:                  ## @__s5pcsis_set_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%rdi), %rdx
	movl	20(%rdi), %r8d
	movl	12(%rdi), %r9d
	movl	16(%rdi), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	callq	_v4l2_dbg
	movq	_S5PCSIS_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_s5pcsis_read
	movq	_S5PCSIS_CFG_FMT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	(%rbx), %rax
	orl	(%rax), %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_s5pcsis_write
	movl	12(%rbx), %edx
	shll	$16, %edx
	orl	16(%rbx), %edx
	movq	_S5PCSIS_RESOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s5pcsis_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fmt: %#x, %d x %d\n"

	.comm	_S5PCSIS_CONFIG,4,2             ## @S5PCSIS_CONFIG
	.comm	_S5PCSIS_CFG_FMT_MASK,4,2       ## @S5PCSIS_CFG_FMT_MASK
	.comm	_S5PCSIS_RESOL,4,2              ## @S5PCSIS_RESOL
	.no_dead_strip	___s5pcsis_set_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __s5pcsis_set_format
___s5pcsis_set_format:                  ; @__s5pcsis_set_format
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, x0, #8
	ldp	w6, w4, [x0, #16]
	ldr	w5, [x0, #12]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	bl	_v4l2_dbg
Lloh5:
	adrp	x20, _S5PCSIS_CONFIG@GOTPAGE
Lloh6:
	ldr	x20, [x20, _S5PCSIS_CONFIG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_s5pcsis_read
Lloh7:
	adrp	x8, _S5PCSIS_CFG_FMT_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S5PCSIS_CFG_FMT_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	x9, [x19]
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_s5pcsis_write
	ldp	w8, w9, [x19, #12]
	orr	w2, w9, w8, lsl #16
Lloh10:
	adrp	x8, _S5PCSIS_RESOL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S5PCSIS_RESOL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s5pcsis_write
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fmt: %#x, %d x %d\n"

	.comm	_S5PCSIS_CONFIG,4,2             ; @S5PCSIS_CONFIG
	.comm	_S5PCSIS_CFG_FMT_MASK,4,2       ; @S5PCSIS_CFG_FMT_MASK
	.comm	_S5PCSIS_RESOL,4,2              ; @S5PCSIS_RESOL
	.no_dead_strip	___s5pcsis_set_format
.subsections_via_symbols
