	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_get_pad_index            ## -- Begin function media_get_pad_index
	.p2align	4, 0x90
_media_get_pad_index:                   ## @media_get_pad_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.2:
	movq	8(%rdi), %rdi
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	addq	$8, %rdi
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	addq	$16, %rdi
	cmpq	%rax, %r8
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rdi), %rcx
	movl	$1, %r11d
	cmpq	%r10, %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r11d, %r11d
	cmpq	%r9, %rcx
	jne	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%esi, %r11d
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edx, (%rdi)
	jne	LBB0_3
## %bb.8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEDIA_PAD_FL_SINK,8,3          ## @MEDIA_PAD_FL_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,8,3        ## @MEDIA_PAD_FL_SOURCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_get_pad_index            ; -- Begin function media_get_pad_index
	.p2align	2
_media_get_pad_index:                   ; @media_get_pad_index
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_10
; %bb.1:
	mov	x8, x0
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x0, #0
Lloh0:
	adrp	x10, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
	ldr	x11, [x8, #8]
Lloh2:
	ldr	x8, [x10]
Lloh3:
	adrp	x10, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x11, x11, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, #1
	add	x11, x11, #16
	cmp	x9, x0
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x11, #-8]
	cmp	x12, x8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w12, #1
	cmp	w12, w1
	b.ne	LBB0_3
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, x10
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w12, #0
	cmp	w12, w1
	b.ne	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x11]
	cmp	w12, w2
	b.ne	LBB0_3
; %bb.9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEDIA_PAD_FL_SINK,8,3          ; @MEDIA_PAD_FL_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,8,3        ; @MEDIA_PAD_FL_SOURCE
.subsections_via_symbols
