	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srpt_build_cmd_rsp
_srpt_build_cmd_rsp:                    ## @srpt_build_cmd_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	%ecx, %edi
	andl	$1, %edi
	callq	_WARN_ON
	movq	16(%rbx), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_BUG_ON
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r13d
	xorl	%edi, %edi
	cmpl	$9, %r13d
	setae	%dil
	callq	_WARN_ON
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_SRP_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	leaq	4(%r15), %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(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%r12)
	movl	%r14d, (%r12)
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.1:
	movq	_MIN_MAX_RSP_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$41, (%rax)
	setb	%dil
	callq	_BUILD_BUG_ON
	movl	(%r15), %ebx
	addl	$-40, %ebx
	cmpl	%ebx, %r13d
	jle	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_pr_warn
	jmp	LBB0_4
LBB0_2:
	movl	%r13d, %ebx
LBB0_4:
	movq	_SRP_RSP_FLAG_SNSVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r12)
	addq	$40, %r12
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
LBB0_5:
	addl	$40, %ebx
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRP_RSP,4,2                    ## @SRP_RSP
	.comm	_MIN_MAX_RSP_SIZE,4,2           ## @MIN_MAX_RSP_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"truncated sense data from %d to %d bytes\n"

	.comm	_SRP_RSP_FLAG_SNSVALID,4,2      ## @SRP_RSP_FLAG_SNSVALID
	.no_dead_strip	_srpt_build_cmd_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_cmd_rsp
_srpt_build_cmd_rsp:                    ; @srpt_build_cmd_rsp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x22, x0
	and	w0, w3, #0x1
	bl	_WARN_ON
	ldr	x19, [x20, #16]
	cmp	x19, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x21, [x20, #8]
	ldr	w20, [x20]
	cmp	w20, #8
	cset	w0, hi
	bl	_WARN_ON
	mov	x0, x19
	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, [x19, #32]
	add	x0, x22, #4
	mov	w1, #0
	bl	_atomic_xchg
	add	w0, w0, #1
	bl	_cpu_to_be32
	str	x0, [x19, #24]
	str	w24, [x19, #20]
	str	w23, [x19]
	cbz	w20, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _MIN_MAX_RSP_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIN_MAX_RSP_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #41
	cset	w0, lo
	bl	_BUILD_BUG_ON
	ldr	w8, [x22]
	sub	w22, w8, #40
	cmp	w20, w22
	b.le	LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_pr_warn
	mov	x20, x22
LBB0_3:
Lloh8:
	adrp	x8, _SRP_RSP_FLAG_SNSVALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SRP_RSP_FLAG_SNSVALID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_cpu_to_be32
	str	x0, [x19, #8]
	add	x0, x19, #40
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
LBB0_4:
	add	w0, w20, #40
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SRP_RSP,4,2                    ; @SRP_RSP
	.comm	_MIN_MAX_RSP_SIZE,4,2           ; @MIN_MAX_RSP_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"truncated sense data from %d to %d bytes\n"

	.comm	_SRP_RSP_FLAG_SNSVALID,4,2      ; @SRP_RSP_FLAG_SNSVALID
	.no_dead_strip	_srpt_build_cmd_rsp
.subsections_via_symbols
