	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_dmx_feed_alloc
_dvb_dmx_feed_alloc:                    ## @dvb_dmx_feed_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.4:
	movq	8(%rdi), %rsi
	movq	_DMX_STATE_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rsi,%rdx,8)
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_5
## %bb.8:
	popq	%rbp
	retq
LBB0_1:
	xorl	%edx, %edx
LBB0_2:
	cmpl	%r8d, %edx
	jne	LBB0_7
## %bb.3:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_DMX_STATE_ALLOCATED@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rdi), %rsi
	movl	%edx, %edx
	leaq	(%rsi,%rdx,8), %rax
	movq	%rcx, (%rsi,%rdx,8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMX_STATE_FREE,8,3             ## @DMX_STATE_FREE
	.comm	_DMX_STATE_ALLOCATED,8,3        ## @DMX_STATE_ALLOCATED
	.no_dead_strip	_dvb_dmx_feed_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_dmx_feed_alloc
_dvb_dmx_feed_alloc:                    ; @dvb_dmx_feed_alloc
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #8]
Lloh0:
	adrp	x11, _DMX_STATE_FREE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _DMX_STATE_FREE@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x9, lsl #3]
	cmp	x12, x11
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:
	mov	x0, #0
	ret
LBB0_5:
	mov	w9, #0
LBB0_6:
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, #0
	ret
LBB0_8:
Lloh3:
	adrp	x8, _DMX_STATE_ALLOCATED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMX_STATE_ALLOCATED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x10, [x0, #8]
	add	x0, x10, w9, uxtw #3
	str	x8, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMX_STATE_FREE,8,3             ; @DMX_STATE_FREE
	.comm	_DMX_STATE_ALLOCATED,8,3        ; @DMX_STATE_ALLOCATED
	.no_dead_strip	_dvb_dmx_feed_alloc
.subsections_via_symbols
