	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_pixel_order
_smiapp_pixel_order:                    ## @smiapp_pixel_order
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rdi
	callq	_v4l2_get_subdevdata
	movq	16(%r14), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_SMIAPP_IMAGE_ORIENTATION_HFLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_3:
	movq	8(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_SMIAPP_IMAGE_ORIENTATION_VFLIP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
LBB0_5:
	xorl	(%r14), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
	xorl	4(%r14), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMIAPP_IMAGE_ORIENTATION_HFLIP,4,2 ## @SMIAPP_IMAGE_ORIENTATION_HFLIP
	.comm	_SMIAPP_IMAGE_ORIENTATION_VFLIP,4,2 ## @SMIAPP_IMAGE_ORIENTATION_VFLIP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flip %d\n"

	.no_dead_strip	_smiapp_pixel_order
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_pixel_order
_smiapp_pixel_order:                    ; @smiapp_pixel_order
	.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
	ldr	x0, [x0, #24]
	bl	_v4l2_get_subdevdata
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _SMIAPP_IMAGE_ORIENTATION_HFLIP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMIAPP_IMAGE_ORIENTATION_HFLIP@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _SMIAPP_IMAGE_ORIENTATION_VFLIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMIAPP_IMAGE_ORIENTATION_VFLIP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_3:
	ldr	w9, [x19]
	eor	w20, w9, w8
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	ldr	w8, [x19, #4]
	eor	w0, w8, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SMIAPP_IMAGE_ORIENTATION_HFLIP,4,2 ; @SMIAPP_IMAGE_ORIENTATION_HFLIP
	.comm	_SMIAPP_IMAGE_ORIENTATION_VFLIP,4,2 ; @SMIAPP_IMAGE_ORIENTATION_VFLIP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flip %d\n"

	.no_dead_strip	_smiapp_pixel_order
.subsections_via_symbols
