	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_media_subtype
_get_media_subtype:                     ## @get_media_subtype
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %edx
	movq	_ifm_type_descriptions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ifmedia_types_to_subtypes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	cmpq	$0, 8(%rax)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rax)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$8, %r15
	cmpq	$0, 24(%rax)
	leaq	16(%rax), %rax
	jne	LBB0_1
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movq	(%r15), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rsi
	callq	_lookup_media_word
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_7
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_errx
                                        ## implicit-def: $eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifm_type_descriptions,8,3      ## @ifm_type_descriptions
	.comm	_ifmedia_types_to_subtypes,8,3  ## @ifmedia_types_to_subtypes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown media type 0x%x"

L_.str.1:                               ## @.str.1
	.asciz	"unknown media subtype: %s"

	.no_dead_strip	_get_media_subtype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_media_subtype
_get_media_subtype:                     ; @get_media_subtype
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _ifm_type_descriptions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifm_type_descriptions@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ifmedia_types_to_subtypes@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ifmedia_types_to_subtypes@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x9]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	cmp	w9, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x20, x20, #8
	ldr	x9, [x8, #24]
	add	x8, x8, #16
	cbnz	x9, LBB0_1
LBB0_3:
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	ldr	x8, [x20]
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.5:
	mov	w21, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x19
	bl	_lookup_media_word
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, x21]
	add	x21, x21, #8
	cbnz	x0, LBB0_6
LBB0_8:
	str	x19, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
                                        ; implicit-def: $w0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ifm_type_descriptions,8,3      ; @ifm_type_descriptions
	.comm	_ifmedia_types_to_subtypes,8,3  ; @ifmedia_types_to_subtypes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown media type 0x%x"

l_.str.1:                               ; @.str.1
	.asciz	"unknown media subtype: %s"

	.no_dead_strip	_get_media_subtype
.subsections_via_symbols
