	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et8ek8_set_pad_format
_et8ek8_set_pad_format:                 ## @et8ek8_set_pad_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	%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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_to_et8ek8_sensor
	movq	%rax, %r14
	movl	(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	___et8ek8_get_pad_format
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	4(%rbx), %r13
	movq	_meta_reglist@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	callq	_et8ek8_reglist_find_mode_fmt
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_et8ek8_reglist_to_mbus
	movl	4(%rbx), %eax
	movl	%eax, (%r15)
	movl	(%rbx), %eax
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	%r12, (%r14)
	movq	%r14, %rdi
	callq	_et8ek8_update_controls
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_meta_reglist,4,2               ## @meta_reglist
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_et8ek8_set_pad_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et8ek8_set_pad_format
_et8ek8_set_pad_format:                 ; @et8ek8_set_pad_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	bl	_to_et8ek8_sensor
	mov	x19, x0
	ldr	w2, [x20, #8]
	ldr	w3, [x20]
	mov	x1, x21
	bl	___et8ek8_get_pad_format
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x23, x20, #4
Lloh0:
	adrp	x0, _meta_reglist@GOTPAGE
Lloh1:
	ldr	x0, [x0, _meta_reglist@GOTPAGEOFF]
	mov	x1, x23
	bl	_et8ek8_reglist_find_mode_fmt
	mov	x22, x0
	mov	x1, x23
	bl	_et8ek8_reglist_to_mbus
	ldr	w8, [x20, #4]
	str	w8, [x21]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	str	x22, [x19]
	mov	x0, x19
	bl	_et8ek8_update_controls
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_meta_reglist,4,2               ; @meta_reglist
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_et8ek8_set_pad_format
.subsections_via_symbols
