	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_entity_pads_init         ## -- Begin function media_entity_pads_init
	.p2align	4, 0x90
_media_entity_pads_init:                ## @media_entity_pads_init
	.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
	movq	_MEDIA_ENTITY_MAX_PADS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movl	%esi, (%rdi)
	movq	%rdx, 8(%rdi)
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_mutex_lock
LBB0_4:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.5:
	movl	%r12d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	addq	$16, %rbx
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, 4(%r13,%rbx)
	movl	%r12d, -4(%r13,%rbx)
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_MEDIA_GRAPH_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	addq	%rbx, %rdx
	movq	%r14, %rdi
	callq	_media_gobj_create
	jmp	LBB0_8
LBB0_1:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_ENTITY_MAX_PADS,4,2      ## @MEDIA_ENTITY_MAX_PADS
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_MEDIA_GRAPH_PAD,4,2            ## @MEDIA_GRAPH_PAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_media_entity_pads_init         ; -- Begin function media_entity_pads_init
	.p2align	2
_media_entity_pads_init:                ; @media_entity_pads_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _MEDIA_ENTITY_MAX_PADS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEDIA_ENTITY_MAX_PADS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ls	LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	str	w1, [x0]
	str	x2, [x0, #8]
	cbz	x21, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_mutex_lock
LBB0_3:
	cbz	w22, LBB0_9
; %bb.4:
	mov	x23, #0
	mov	w24, #0
	mov	w8, w22
	lsl	x22, x8, #4
Lloh3:
	adrp	x25, _MEDIA_GRAPH_PAD@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MEDIA_GRAPH_PAD@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	add	x23, x23, #16
	cmp	x22, x23
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x19, x23
	str	x20, [x8, #8]
	str	w24, [x8]
	cbz	x21, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x25]
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	add	x2, x8, #4
	mov	x0, x21
	bl	_media_gobj_create
	b	LBB0_5
LBB0_8:
Lloh5:
	adrp	x8, _E2BIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_9:
	cbz	x21, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_ENTITY_MAX_PADS,4,2      ; @MEDIA_ENTITY_MAX_PADS
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_MEDIA_GRAPH_PAD,4,2            ; @MEDIA_GRAPH_PAD
.subsections_via_symbols
