	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_media_options              ## -- Begin function get_media_options
	.p2align	4, 0x90
_get_media_options:                     ## @get_media_options
	.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
	movl	%edi, %ebx
	movq	%rsi, %rdi
	callq	_strdup
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	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_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rax)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r15
	cmpq	$0, 24(%rax)
	leaq	16(%rax), %rax
	jne	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strtok
	testq	%rax, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r14d
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%r14d, %r14d
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	orl	%r14d, %r13d
	xorl	%edi, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strtok
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_18
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	(%r15), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$8, %r12d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rsi
	callq	_lookup_media_word
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	(%r15), %rax
	movq	(%rax,%r12), %rdi
	addq	$8, %r12
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$-1, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r14d, %r14d
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_17
LBB0_7:
	xorl	%r13d, %r13d
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"strdup"

	.comm	_ifm_type_descriptions,8,3      ## @ifm_type_descriptions
	.comm	_ifmedia_types_to_subtypes,8,3  ## @ifmedia_types_to_subtypes
L_.str.1:                               ## @.str.1
	.asciz	"unknown media type 0x%x"

L_.str.2:                               ## @.str.2
	.asciz	","

L_.str.3:                               ## @.str.3
	.asciz	"unknown option: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_media_options              ; -- Begin function get_media_options
	.p2align	2
_get_media_options:                     ; @get_media_options
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	mov	x0, x1
	bl	_strdup
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh2:
	adrp	x8, _ifm_type_descriptions@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ifm_type_descriptions@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _ifmedia_types_to_subtypes@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ifmedia_types_to_subtypes@GOTPAGEOFF]
Lloh7:
	ldr	x25, [x9]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	cmp	w9, w20
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #8
	ldr	x9, [x8, #24]
	add	x8, x8, #16
	cbnz	x9, LBB0_3
LBB0_5:
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strtok
	cbz	x0, LBB0_17
; %bb.7:
	mov	x23, x0
	mov	w20, #0
	mov	w24, #0
Lloh12:
	adrp	x21, l_.str.3@PAGE
Lloh13:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh14:
	adrp	x22, l_.str.2@PAGE
Lloh15:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, x0
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	cbz	w24, LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	orr	w20, w24, w20
	mov	x0, #0
	mov	x1, x22
	bl	_strtok
	mov	x23, x0
	cbz	x0, LBB0_18
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x25]
	ldr	x0, [x8]
	cbz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w26, #8
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, x23
	bl	_lookup_media_word
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x25]
	ldr	x0, [x8, x26]
	add	x26, x26, #8
	cbnz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w24, #-1
	b	LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	str	x23, [sp]
	mov	w0, #1
	mov	x1, x21
	bl	_errx
	b	LBB0_10
LBB0_17:
	mov	w20, #0
LBB0_18:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"strdup"

	.comm	_ifm_type_descriptions,8,3      ; @ifm_type_descriptions
	.comm	_ifmedia_types_to_subtypes,8,3  ; @ifmedia_types_to_subtypes
l_.str.1:                               ; @.str.1
	.asciz	"unknown media type 0x%x"

l_.str.2:                               ; @.str.2
	.asciz	","

l_.str.3:                               ; @.str.3
	.asciz	"unknown option: %s"

.subsections_via_symbols
