	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srpt_build_tskmgmt_rsp
_srpt_build_tskmgmt_rsp:                ## @srpt_build_tskmgmt_rsp
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	(%rsi), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_SRP_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_atomic_xchg
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%rbx)
	movl	%r15d, 20(%rbx)
	movq	_SRP_RSP_FLAG_RSPVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movl	$4, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rax
	movl	%r14d, 12(%rax)
	movl	$44, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRP_RSP,4,2                    ## @SRP_RSP
	.comm	_SRP_RSP_FLAG_RSPVALID,4,2      ## @SRP_RSP_FLAG_RSPVALID
	.no_dead_strip	_srpt_build_tskmgmt_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srpt_build_tskmgmt_rsp
_srpt_build_tskmgmt_rsp:                ; @srpt_build_tskmgmt_rsp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x22, [x1]
	cmp	x22, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x22
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _SRP_RSP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRP_RSP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #32]
	mov	x0, x21
	mov	w1, #0
	bl	_atomic_xchg
	add	w0, w0, #1
	bl	_cpu_to_be32
Lloh3:
	adrp	x8, _SRP_RSP_FLAG_RSPVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SRP_RSP_FLAG_RSPVALID@GOTPAGEOFF]
	str	x0, [x22, #24]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x22, #16]
	orr	w8, w9, w8
	stp	w8, w19, [x22, #16]
	mov	w0, #4
	bl	_cpu_to_be32
	str	x0, [x22, #8]
	ldr	x8, [x22]
	str	w20, [x8, #12]
	mov	w0, #44
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SRP_RSP,4,2                    ; @SRP_RSP
	.comm	_SRP_RSP_FLAG_RSPVALID,4,2      ; @SRP_RSP_FLAG_RSPVALID
	.no_dead_strip	_srpt_build_tskmgmt_rsp
.subsections_via_symbols
