	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsmark_change
_dsmark_change:                         ## @dsmark_change
	.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	%r8, %r13
	movq	%rcx, %rbx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_qdisc_priv
	movq	%rax, %r15
	movq	_TCA_OPTIONS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	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, -64(%rbp)                 ## 8-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r13), %r9
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_pr_debug
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_dsmark_valid_index
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	_TCA_DSMARK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dsmark_policy@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_nla_parse_nested
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_TCA_DSMARK_MASK@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.8:
	callq	_nla_get_u8
	movq	%rax, %r14
	jmp	LBB0_9
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	negl	%ebx
	jmp	LBB0_13
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_7:
	xorl	%r14d, %r14d
LBB0_9:
	movq	_TCA_DSMARK_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_nla_get_u8
	movq	8(%r15), %rcx
	movq	(%r13), %rdx
	movq	%rax, -8(%rcx,%rdx,8)
LBB0_11:
	movq	(%rbx), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%r12,%rax,8)
	je	LBB0_13
## %bb.12:
	movq	(%r15), %rax
	movq	(%r13), %rcx
	movq	%r14, -8(%rax,%rcx,8)
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TCA_OPTIONS,8,3                ## @TCA_OPTIONS
	.comm	_TCA_DSMARK_MAX,4,2             ## @TCA_DSMARK_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsmark_change(sch %p,[qdisc %p],classid %x,parent %x),arg 0x%lx\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_dsmark_policy,4,2              ## @dsmark_policy
	.comm	_TCA_DSMARK_MASK,8,3            ## @TCA_DSMARK_MASK
	.comm	_TCA_DSMARK_VALUE,8,3           ## @TCA_DSMARK_VALUE
	.no_dead_strip	_dsmark_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsmark_change
_dsmark_change:                         ; @dsmark_change
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_qdisc_priv
	mov	x20, x0
Lloh3:
	adrp	x8, _TCA_OPTIONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCA_OPTIONS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x22, [x21, x8, lsl #3]
Lloh6:
	adrp	x26, _TCA_DSMARK_MAX@GOTPAGE
Lloh7:
	ldr	x26, [x26, _TCA_DSMARK_MAX@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	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
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w27, [x8]
	ldr	x5, [x19]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	mov	x2, x20
	mov	x3, x24
	mov	x4, x23
	bl	_pr_debug
	ldr	x1, [x19]
	mov	x0, x20
	bl	_dsmark_valid_index
	cbz	w0, LBB0_5
; %bb.1:
	cbz	x22, LBB0_6
; %bb.2:
	ldr	w1, [x26]
Lloh15:
	adrp	x8, _dsmark_policy@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dsmark_policy@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_nla_parse_nested
	tbnz	w0, #31, LBB0_13
; %bb.3:
Lloh18:
	adrp	x23, _TCA_DSMARK_MASK@GOTPAGE
Lloh19:
	ldr	x23, [x23, _TCA_DSMARK_MASK@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_7
; %bb.4:
	bl	_nla_get_u8
	mov	x22, x0
	b	LBB0_8
LBB0_5:
Lloh20:
	adrp	x8, _ENOENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_6:
	neg	w0, w27
	b	LBB0_13
LBB0_7:
	mov	x22, #0
LBB0_8:
Lloh23:
	adrp	x8, _TCA_DSMARK_VALUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TCA_DSMARK_VALUE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_nla_get_u8
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #3
	stur	x0, [x8, #-8]
LBB0_10:
	ldr	x8, [x23]
	ldr	x8, [x21, x8, lsl #3]
	cbz	x8, LBB0_12
; %bb.11:
	mov	w0, #0
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #3
	stur	x22, [x8, #-8]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_TCA_OPTIONS,8,3                ; @TCA_OPTIONS
	.comm	_TCA_DSMARK_MAX,4,2             ; @TCA_DSMARK_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsmark_change(sch %p,[qdisc %p],classid %x,parent %x),arg 0x%lx\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_dsmark_policy,4,2              ; @dsmark_policy
	.comm	_TCA_DSMARK_MASK,8,3            ; @TCA_DSMARK_MASK
	.comm	_TCA_DSMARK_VALUE,8,3           ; @TCA_DSMARK_VALUE
	.no_dead_strip	_dsmark_change
.subsections_via_symbols
