	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malidp_hw_get_format_id        ## -- Begin function malidp_hw_get_format_id
	.p2align	4, 0x90
_malidp_hw_get_format_id:               ## @malidp_hw_get_format_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r9d
	movq	_MALIDP_INVALID_FORMAT_ID@GOTPCREL(%rip), %r8
	testq	%r9, %r9
	je	LBB0_10
## %bb.1:
	movq	8(%rdi), %r10
	addq	$16, %r10
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %r10
	decq	%r9
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-16(%r10), %eax
	notl	%eax
	testl	%eax, %esi
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, -8(%r10)
	jne	LBB0_9
## %bb.4:
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.5:
	movq	_DRM_FORMAT_YUYV@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	_MALIDP_DEVICE_AFBC_YUYV_USE_422_P2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_8
## %bb.7:
	movq	_AFBC_YUV_422_FORMAT_ID@GOTPCREL(%rip), %r8
	jmp	LBB0_10
LBB0_8:
	movq	%r10, %r8
LBB0_10:
	movl	(%r8), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_FORMAT_YUYV,8,3            ## @DRM_FORMAT_YUYV
	.comm	_MALIDP_DEVICE_AFBC_YUYV_USE_422_P2,4,2 ## @MALIDP_DEVICE_AFBC_YUYV_USE_422_P2
	.comm	_AFBC_YUV_422_FORMAT_ID,4,2     ## @AFBC_YUV_422_FORMAT_ID
	.comm	_MALIDP_INVALID_FORMAT_ID,4,2   ## @MALIDP_INVALID_FORMAT_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malidp_hw_get_format_id        ; -- Begin function malidp_hw_get_format_id
	.p2align	2
_malidp_hw_get_format_id:               ; @malidp_hw_get_format_id
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cbz	w9, LBB0_11
; %bb.1:
	ldr	x8, [x0, #8]
	add	x8, x8, #16
Lloh0:
	adrp	x10, _MALIDP_INVALID_FORMAT_ID@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MALIDP_INVALID_FORMAT_ID@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #24
	subs	x9, x9, #1
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x8, #-16]
	bics	wzr, w1, w11
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x11, [x8, #-8]
	cmp	x11, x2
	b.ne	LBB0_2
; %bb.5:
	cbz	w3, LBB0_10
; %bb.6:
Lloh2:
	adrp	x9, _DRM_FORMAT_YUYV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_FORMAT_YUYV@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, x2
	b.ne	LBB0_10
; %bb.7:
	ldr	w9, [x0, #4]
Lloh5:
	adrp	x10, _MALIDP_DEVICE_AFBC_YUYV_USE_422_P2@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MALIDP_DEVICE_AFBC_YUYV_USE_422_P2@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.8:
Lloh8:
	adrp	x8, _AFBC_YUV_422_FORMAT_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AFBC_YUV_422_FORMAT_ID@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ret
LBB0_9:
	mov	x8, x10
LBB0_10:
	ldr	w0, [x8]
	ret
LBB0_11:
Lloh11:
	adrp	x8, _MALIDP_INVALID_FORMAT_ID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MALIDP_INVALID_FORMAT_ID@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_FORMAT_YUYV,8,3            ; @DRM_FORMAT_YUYV
	.comm	_MALIDP_DEVICE_AFBC_YUYV_USE_422_P2,4,2 ; @MALIDP_DEVICE_AFBC_YUYV_USE_422_P2
	.comm	_AFBC_YUV_422_FORMAT_ID,4,2     ; @AFBC_YUV_422_FORMAT_ID
	.comm	_MALIDP_INVALID_FORMAT_ID,4,2   ; @MALIDP_INVALID_FORMAT_ID
.subsections_via_symbols
