	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm_output_assign
_stm_output_assign:                     ## @stm_output_assign
	.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	_EINVAL@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	movq	16(%rdi), %rax
	cmpl	%esi, (%rax)
	jb	LBB0_14
## %bb.1:
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	jmp	LBB0_14
LBB0_3:
	leaq	-48(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-68(%rbp), %r8
	movq	%r13, %rdi
	callq	_stp_policy_node_get_ranges
	movq	%r14, %rdi
	callq	_spin_lock
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	leaq	12(%r12), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movl	(%r12), %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_4
LBB0_11:
	testl	%ebx, %ebx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_6
	jmp	LBB0_12
LBB0_4:
	movl	-72(%rbp), %ecx
	movl	-68(%rbp), %r9d
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_stm_find_master_chan
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movl	-48(%rbp), %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, 4(%rsi)
	movl	-44(%rbp), %eax
	movl	%eax, 8(%rsi)
	movl	%r15d, (%rsi)
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.8:
	movq	%r13, %rdi
	callq	_stp_policy_node_priv
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	8(%r14), %rax
	movq	%r13, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	*(%rax)
	movq	%rbx, %rsi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
LBB0_10:
	movq	%r14, %rdi
	callq	_stm_output_claim
	leaq	4(%r14), %rdi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %r8d
	callq	_dev_dbg
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_5:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_6:
	movl	$0, (%rsi)
LBB0_13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"assigned %u:%u (+%u)\n"

	.no_dead_strip	_stm_output_assign
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm_output_assign
_stm_output_assign:                     ; @stm_output_assign
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x23, _EINVAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x23]
	neg	w22, w8
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, w1
	b.lo	LBB0_11
; %bb.1:
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	cmp	x2, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x23]
	neg	w22, w8
	b	LBB0_11
LBB0_3:
	add	x1, sp, #12
	add	x2, sp, #4
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x24
	bl	_stp_policy_node_get_ranges
	mov	x0, x19
	bl	_spin_lock
	add	x23, x20, #12
	mov	x0, x23
	bl	_spin_lock
	ldr	w0, [x20]
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_5
LBB0_4:
	cbnz	w22, LBB0_9
	b	LBB0_10
LBB0_5:
	ldp	w5, w3, [sp]
	add	x2, sp, #12
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_stm_find_master_chan
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldp	w9, w8, [sp, #8]
	stp	w8, w9, [x20, #4]
	str	w21, [x20]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.7:
	mov	x0, x24
	bl	_stp_policy_node_priv
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_4
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x24
	mov	x1, x20
	blr	x8
	mov	x22, x0
	cbz	w0, LBB0_12
LBB0_9:
	str	wzr, [x20]
LBB0_10:
	mov	x0, x23
	bl	_spin_unlock
	mov	x0, x19
	bl	_spin_unlock
LBB0_11:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_stm_output_claim
	add	x0, x19, #4
	ldp	w3, w2, [sp, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x21
	bl	_dev_dbg
	mov	w22, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"assigned %u:%u (+%u)\n"

	.no_dead_strip	_stm_output_assign
.subsections_via_symbols
