	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stp_policy_node_channels_store
_stp_policy_node_channels_store:        ## @stp_policy_node_channels_store
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_to_stp_policy_node
	movq	%rax, %r14
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.2:
	movq	_stp_policy_subsys@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movl	-40(%rbp), %eax
	movq	_INT_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	%esi, %eax
	ja	LBB0_8
## %bb.5:
	movl	-36(%rbp), %edx
	cmpl	%esi, %edx
	ja	LBB0_8
## %bb.6:
	cmpl	%edx, %eax
	ja	LBB0_8
## %bb.7:
	movq	(%rcx), %rcx
	cmpl	(%rcx), %edx
	jae	LBB0_8
## %bb.9:
	movl	%eax, (%r14)
	movl	-36(%rbp), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_11
LBB0_8:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_10
LBB0_3:
	negq	%r12
	movq	%r12, %r15
LBB0_10:
	movq	_stp_policy_subsys@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_11:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,8,3                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u %u"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_stp_policy_subsys,4,2          ## @stp_policy_subsys
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_ERANGE,8,3                     ## @ERANGE
	.no_dead_strip	_stp_policy_node_channels_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stp_policy_node_channels_store
_stp_policy_node_channels_store:        ; @stp_policy_node_channels_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_to_stp_policy_node
	mov	x20, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.1:
Lloh5:
	adrp	x0, _stp_policy_subsys@GOTPAGE
Lloh6:
	ldr	x0, [x0, _stp_policy_subsys@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.2:
	ldr	w8, [sp, #12]
Lloh7:
	adrp	x10, _INT_MAX@GOTPAGE
Lloh8:
	ldr	x10, [x10, _INT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x10]
	cmp	w8, w11
	b.hi	LBB0_7
; %bb.3:
	ldr	w10, [sp, #8]
	cmp	w10, w11
	ccmp	w8, w10, #2, ls
	b.hi	LBB0_7
; %bb.4:
	ldr	x9, [x9]
	ldr	w9, [x9]
	cmp	w10, w9
	b.hs	LBB0_7
; %bb.5:
	str	w8, [x20]
	ldr	w8, [sp, #8]
	str	w8, [x20, #4]
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _ERANGE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_9
LBB0_8:
	neg	x19, x22
LBB0_9:
Lloh16:
	adrp	x0, _stp_policy_subsys@GOTPAGE
Lloh17:
	ldr	x0, [x0, _stp_policy_subsys@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,8,3                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u %u"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_stp_policy_subsys,4,2          ; @stp_policy_subsys
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_ERANGE,8,3                     ; @ERANGE
	.no_dead_strip	_stp_policy_node_channels_store
.subsections_via_symbols
