	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_format_to_drm
_skl_format_to_drm:                     ## @skl_format_to_drm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	addl	$-128, %edi
	cmpl	$4, %edi
	ja	LBB0_1
## %bb.2:
	movl	%ecx, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdi,4), %rdi
	addq	%rcx, %rdi
	jmpq	*%rdi
LBB0_9:
	cmpl	$262144, %eax                   ## imm = 0x40000
	jl	LBB0_10
## %bb.11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_1:
	movl	$12, %eax
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	testl	%esi, %esi
	je	LBB0_7
## %bb.6:
	testl	%edx, %edx
	sete	%al
	orl	$6, %eax
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
	orl	$10, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	$5, %eax
	popq	%rbp
	retq
LBB0_3:
	movl	$4, %eax
	popq	%rbp
	retq
LBB0_10:
	sarl	$16, %eax
	popq	%rbp
	retq
LBB0_7:
	testl	%edx, %edx
	sete	%al
	orl	$8, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_skl_format_to_drm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_format_to_drm
_skl_format_to_drm:                     ; @skl_format_to_drm
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cmp	w3, #64, lsl #12                ; =262144
	b.lt	LBB0_9
; %bb.3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	cmp	w1, #0
	mov	w8, #10
	cinc	w0, w8, eq
	ret
LBB0_5:
	mov	w0, #5
	ret
LBB0_6:
	mov	w0, #4
	ret
LBB0_7:
	mov	w0, #12
	ret
LBB0_8:
	cmp	w2, #0
	mov	w8, #8
	cinc	w8, w8, eq
	mov	w9, #6
	cinc	w9, w9, eq
	cmp	w1, #0
	csel	w0, w8, w9, eq
	ret
LBB0_9:
	asr	w0, w3, #16
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_skl_format_to_drm
.subsections_via_symbols
