	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mqprio_parse_opt
_mqprio_parse_opt:                      ## @mqprio_parse_opt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %r10d
	movq	_TC_MAX_QUEUE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r10d
	jg	LBB0_14
## %bb.1:
	movq	_TC_BITMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	8(%rsi), %rdx
	incq	%rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r10d, (%rdx,%rcx,4)
	jge	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_4
LBB0_5:
	cmpq	$0, 32(%rsi)
	je	LBB0_6
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_6:
	testl	%r10d, %r10d
	jle	LBB0_7
## %bb.8:
	movq	16(%rsi), %rdx
	movq	24(%rsi), %r8
	movl	(%rdi), %r9d
	movl	$1, %r11d
	xorl	%edi, %edi
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	(%rdx,%rdi,4), %ecx
	cmpl	%r9d, %ecx
	jae	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r8,%rdi,4), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	%ecx, %eax
	movq	%r11, %rcx
	cmpl	%r9d, %eax
	ja	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r10, %rcx
	jae	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	leaq	1(%rcx), %rsi
	cmpl	(%rdx,%rcx,4), %eax
	movq	%rsi, %rcx
	jbe	LBB0_12
	jmp	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rdi
	incq	%r11
	xorl	%eax, %eax
	cmpq	%r10, %rdi
	jne	LBB0_9
## %bb.16:
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TC_MAX_QUEUE,4,2               ## @TC_MAX_QUEUE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TC_BITMASK,4,2                 ## @TC_BITMASK
	.no_dead_strip	_mqprio_parse_opt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mqprio_parse_opt
_mqprio_parse_opt:                      ; @mqprio_parse_opt
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _TC_MAX_QUEUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TC_MAX_QUEUE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _TC_BITMASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TC_BITMASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
	tbnz	w10, #31, LBB0_5
; %bb.2:
	ldr	x9, [x1, #8]
	add	x10, x10, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cmp	w11, w8
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #4
	subs	x10, x10, #1
	b.ne	LBB0_3
LBB0_5:
	ldr	x9, [x1, #32]
	cbz	x9, LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.8:
	mov	x9, #0
	ldp	x10, x11, [x1, #16]
	mov	w12, #1
	ldr	w13, [x0]
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	lsl	x14, x9, #2
	ldr	w15, [x10, x14]
	ldr	w16, [x11, x14]
	add	w14, w16, w15
	cmp	w15, w13
	ccmp	w16, #0, #4, lo
	ccmp	w14, w13, #2, ne
	mov	x15, x12
	b.hi	LBB0_6
LBB0_10:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x15, x8
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w16, [x10, x15, lsl #2]
	add	x15, x15, #1
	cmp	w14, w16
	b.ls	LBB0_10
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #0
	add	x9, x9, #1
	add	x12, x12, #1
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.13:
	ret
LBB0_14:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TC_MAX_QUEUE,4,2               ; @TC_MAX_QUEUE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TC_BITMASK,4,2                 ; @TC_BITMASK
	.no_dead_strip	_mqprio_parse_opt
.subsections_via_symbols
