	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsmark_init
_dsmark_init:                           ## @dsmark_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_qdisc_priv
	movq	%rax, %r14
	movq	_TCA_DSMARK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_NO_DEFAULT_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_pr_debug
	testq	%r13, %r13
	je	LBB0_11
## %bb.1:
	movq	_TCA_DSMARK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dsmark_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_nla_parse_nested
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	_TCA_DSMARK_INDICES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_nla_get_u16
	movq	%rax, %r13
	movl	%r13d, %edi
	callq	_hweight32
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.4:
	movq	_TCA_DSMARK_DEFAULT_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	movq	%r12, %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	callq	_nla_get_u16
	movq	%rax, %r12
LBB0_6:
	leal	(%r13,%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
## %bb.8:
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	movl	$255, %esi
	movl	%r13d, %edx
	callq	_memset
	movslq	%r13d, %rdi
	shlq	$2, %rdi
	addq	40(%r14), %rdi
	movq	%rdi, 32(%r14)
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movl	%r13d, (%r14)
	movq	%r12, 24(%r14)
	movq	_TCA_DSMARK_SET_TC_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	callq	_nla_get_flag
	movl	%eax, 16(%r14)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_qdisc_dev
	movl	(%r15), %ecx
	movl	4(%r15), %esi
	movq	_pfifo_qdisc_ops@GOTPCREL(%rip), %rdx
	movl	%eax, %edi
	callq	_qdisc_create_dflt
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_noop_qdisc@GOTPCREL(%rip), %rax
LBB0_10:
	movq	%rax, 8(%r14)
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_11
LBB0_2:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TCA_DSMARK_MAX,4,2             ## @TCA_DSMARK_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NO_DEFAULT_INDEX,8,3           ## @NO_DEFAULT_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsmark_init(sch %p,[qdisc %p],opt %p)\n"

	.comm	_dsmark_policy,4,2              ## @dsmark_policy
	.comm	_TCA_DSMARK_INDICES,8,3         ## @TCA_DSMARK_INDICES
	.comm	_TCA_DSMARK_DEFAULT_INDEX,8,3   ## @TCA_DSMARK_DEFAULT_INDEX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TCA_DSMARK_SET_TC_INDEX,8,3    ## @TCA_DSMARK_SET_TC_INDEX
	.comm	_pfifo_qdisc_ops,4,2            ## @pfifo_qdisc_ops
	.comm	_noop_qdisc,4,2                 ## @noop_qdisc
L_.str.1:                               ## @.str.1
	.asciz	"dsmark_init: qdisc %p\n"

	.no_dead_strip	_dsmark_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsmark_init
_dsmark_init:                           ; @dsmark_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
	sub	sp, sp, #16
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_qdisc_priv
	mov	x19, x0
Lloh3:
	adrp	x24, _TCA_DSMARK_MAX@GOTPAGE
Lloh4:
	ldr	x24, [x24, _TCA_DSMARK_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x25, _EINVAL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _EINVAL@GOTPAGEOFF]
	ldr	w26, [x25]
Lloh9:
	adrp	x8, _NO_DEFAULT_INDEX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NO_DEFAULT_INDEX@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	stp	x0, x23, [sp, #-16]!
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	add	sp, sp, #16
	cbz	x23, LBB0_7
; %bb.1:
	ldr	w1, [x24]
Lloh14:
	adrp	x8, _dsmark_policy@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dsmark_policy@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_nla_parse_nested
	tbnz	w0, #31, LBB0_10
; %bb.2:
	ldr	w24, [x25]
Lloh17:
	adrp	x8, _TCA_DSMARK_INDICES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TCA_DSMARK_INDICES@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	bl	_nla_get_u16
	mov	x23, x0
	bl	_hweight32
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.3:
Lloh20:
	adrp	x8, _TCA_DSMARK_DEFAULT_INDEX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TCA_DSMARK_DEFAULT_INDEX@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_nla_get_u16
	mov	x22, x0
LBB0_5:
	lsl	w0, w23, #1
Lloh23:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.6:
	str	x0, [x19, #40]
	mov	w1, #255
	mov	x2, x23
	bl	_memset
	ldr	x8, [x19, #40]
	lsl	x9, x23, #32
	add	x0, x8, x9, asr #30
	str	x0, [x19, #32]
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	str	w23, [x19]
	str	x22, [x19, #24]
Lloh26:
	adrp	x8, _TCA_DSMARK_SET_TC_INDEX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TCA_DSMARK_SET_TC_INDEX@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	bl	_nla_get_flag
	str	w0, [x19, #16]
	mov	x0, x20
	bl	_qdisc_dev
	ldp	w3, w1, [x20]
Lloh29:
	adrp	x2, _pfifo_qdisc_ops@GOTPAGE
Lloh30:
	ldr	x2, [x2, _pfifo_qdisc_ops@GOTPAGEOFF]
	bl	_qdisc_create_dflt
Lloh31:
	adrp	x8, _noop_qdisc@GOTPAGE
Lloh32:
	ldr	x8, [x8, _noop_qdisc@GOTPAGEOFF]
	cmp	x0, #0
	csel	x1, x8, x0, eq
	str	x1, [x19, #8]
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	neg	w0, w26
	b	LBB0_10
LBB0_8:
	neg	w0, w24
	b	LBB0_10
LBB0_9:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #64
	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
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_TCA_DSMARK_MAX,4,2             ; @TCA_DSMARK_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NO_DEFAULT_INDEX,8,3           ; @NO_DEFAULT_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsmark_init(sch %p,[qdisc %p],opt %p)\n"

	.comm	_dsmark_policy,4,2              ; @dsmark_policy
	.comm	_TCA_DSMARK_INDICES,8,3         ; @TCA_DSMARK_INDICES
	.comm	_TCA_DSMARK_DEFAULT_INDEX,8,3   ; @TCA_DSMARK_DEFAULT_INDEX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TCA_DSMARK_SET_TC_INDEX,8,3    ; @TCA_DSMARK_SET_TC_INDEX
	.comm	_pfifo_qdisc_ops,4,2            ; @pfifo_qdisc_ops
	.comm	_noop_qdisc,4,2                 ; @noop_qdisc
l_.str.1:                               ; @.str.1
	.asciz	"dsmark_init: qdisc %p\n"

	.no_dead_strip	_dsmark_init
.subsections_via_symbols
