	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stp_policy_node_masters_store
_stp_policy_node_masters_store:         ## @stp_policy_node_masters_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
	movl	-36(%rbp), %edx
	cmpl	%edx, %eax
	ja	LBB0_7
## %bb.5:
	movq	(%rcx), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_7
## %bb.6:
	cmpl	4(%rcx), %edx
	jbe	LBB0_8
LBB0_7:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_10
LBB0_3:
	negq	%r12
	movq	%r12, %r15
LBB0_9:
	movq	_stp_policy_subsys@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_10:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, (%r14)
	movl	-36(%rbp), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_9
	.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	_ERANGE,8,3                     ## @ERANGE
	.no_dead_strip	_stp_policy_node_masters_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_masters_store
_stp_policy_node_masters_store:         ; @stp_policy_node_masters_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	x10, [x8]
	cbz	x10, LBB0_7
; %bb.2:
	ldp	w9, w8, [sp, #8]
	cmp	w8, w9
	b.hi	LBB0_5
; %bb.3:
	ldr	x10, [x10]
	ldr	w11, [x10]
	cmp	w8, w11
	b.lo	LBB0_5
; %bb.4:
	ldr	w10, [x10, #4]
	cmp	w9, w10
	b.ls	LBB0_10
LBB0_5:
Lloh7:
	adrp	x8, _ERANGE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_9
LBB0_7:
	neg	x19, x22
LBB0_8:
Lloh13:
	adrp	x0, _stp_policy_subsys@GOTPAGE
Lloh14:
	ldr	x0, [x0, _stp_policy_subsys@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_9:
	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
LBB0_10:
	str	w8, [x20]
	ldr	w8, [sp, #8]
	str	w8, [x20, #4]
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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	_ERANGE,8,3                     ; @ERANGE
	.no_dead_strip	_stp_policy_node_masters_store
.subsections_via_symbols
