	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srpt_get_ioc
_srpt_get_ioc:                          ## @srpt_get_ioc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	cmpl	$17, %esi
	jge	LBB0_2
## %bb.4:
	cmpl	$3, %esi
	jl	LBB0_6
## %bb.5:
	movq	_DM_MAD_STATUS_NO_IOC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_DM_MAD_STATUS_INVALID_FIELD@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, %r15
	jmp	LBB0_10
LBB0_6:
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movq	8(%r14), %rbx
	cmpq	$0, 16(%r13)
	je	LBB0_8
## %bb.7:
	movl	(%r13), %eax
	jmp	LBB0_9
LBB0_8:
	movq	_MAX_SRPT_RQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r13), %rax
	movl	(%rax), %esi
	callq	_min
LBB0_9:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	movl	108(%rbx), %edi
	movq	_SRPT_ID_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movq	_srpt_service_guid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be64
	movl	%eax, 104(%rbx)
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 96(%rbx)
	movq	8(%r13), %rax
	movl	8(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 88(%rbx)
	movq	8(%r13), %rax
	movl	12(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, 80(%rbx)
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 72(%rbx)
	movl	$0, (%rbx)
	movq	_SRP_REV16A_IB_IO_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, 64(%rbx)
	movq	_SRP_IO_SUBCLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, 56(%rbx)
	movq	_SRP_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, 48(%rbx)
	movq	_SRP_PROTOCOL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, 40(%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be16
	movq	%rax, 32(%rbx)
	movl	$4, 4(%rbx)
	movq	_srp_max_req_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%rbx)
	movl	(%r12), %edi
	movl	$16777216, %esi                 ## imm = 0x1000000
	callq	_min
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%rbx)
	movl	$1, 8(%rbx)
	movq	_SRP_SEND_TO_IOC@GOTPCREL(%rip), %rax
	movq	_SRP_SEND_FROM_IOC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SRP_RDMA_READ_FROM_IOC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SRP_RDMA_WRITE_FROM_IOC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 12(%rbx)
LBB0_10:
	movq	%r15, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_MAD_STATUS_INVALID_FIELD,4,2 ## @DM_MAD_STATUS_INVALID_FIELD
	.comm	_DM_MAD_STATUS_NO_IOC,4,2       ## @DM_MAD_STATUS_NO_IOC
	.comm	_MAX_SRPT_RQ_SIZE,4,2           ## @MAX_SRPT_RQ_SIZE
	.comm	_SRPT_ID_STRING,4,2             ## @SRPT_ID_STRING
	.comm	_srpt_service_guid,4,2          ## @srpt_service_guid
	.comm	_SRP_REV16A_IB_IO_CLASS,4,2     ## @SRP_REV16A_IB_IO_CLASS
	.comm	_SRP_IO_SUBCLASS,4,2            ## @SRP_IO_SUBCLASS
	.comm	_SRP_PROTOCOL,4,2               ## @SRP_PROTOCOL
	.comm	_SRP_PROTOCOL_VERSION,4,2       ## @SRP_PROTOCOL_VERSION
	.comm	_srp_max_req_size,4,2           ## @srp_max_req_size
	.comm	_SRP_SEND_TO_IOC,4,2            ## @SRP_SEND_TO_IOC
	.comm	_SRP_SEND_FROM_IOC,4,2          ## @SRP_SEND_FROM_IOC
	.comm	_SRP_RDMA_READ_FROM_IOC,4,2     ## @SRP_RDMA_READ_FROM_IOC
	.comm	_SRP_RDMA_WRITE_FROM_IOC,4,2    ## @SRP_RDMA_WRITE_FROM_IOC
	.no_dead_strip	_srpt_get_ioc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srpt_get_ioc
_srpt_get_ioc:                          ; @srpt_get_ioc
	.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	x19, x2
	cbz	w1, LBB0_4
; %bb.1:
	cmp	w1, #17
	b.ge	LBB0_4
; %bb.2:
	cmp	w1, #3
	b.lt	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _DM_MAD_STATUS_NO_IOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_MAD_STATUS_NO_IOC@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _DM_MAD_STATUS_INVALID_FIELD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DM_MAD_STATUS_INVALID_FIELD@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	b	LBB0_10
LBB0_6:
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	x20, [x19, #8]
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w22, [x23]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _MAX_SRPT_RQ_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_SRPT_RQ_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x23, #8]
	ldr	w1, [x8]
	bl	_min
	mov	x22, x0
LBB0_9:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #112
	bl	_memset
	ldr	w0, [x20, #108]
Lloh7:
	adrp	x8, _SRPT_ID_STRING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SRPT_ID_STRING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_strcpy
Lloh10:
	adrp	x8, _srpt_service_guid@GOTPAGE
Lloh11:
	ldr	x8, [x8, _srpt_service_guid@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_cpu_to_be64
	str	w0, [x20, #104]
	ldr	x8, [x23, #8]
	ldr	w0, [x8, #4]
	bl	_cpu_to_be32
	str	x0, [x20, #96]
	ldr	x8, [x23, #8]
	ldr	w0, [x8, #8]
	bl	_cpu_to_be32
	str	x0, [x20, #88]
	ldr	x8, [x23, #8]
	ldr	w0, [x8, #12]
	bl	_cpu_to_be16
	str	x0, [x20, #80]
	ldr	x8, [x23, #8]
	ldr	w0, [x8, #4]
	bl	_cpu_to_be32
	str	x0, [x20, #72]
	str	wzr, [x20]
Lloh13:
	adrp	x8, _SRP_REV16A_IB_IO_CLASS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SRP_REV16A_IB_IO_CLASS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [x20, #64]
Lloh16:
	adrp	x8, _SRP_IO_SUBCLASS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SRP_IO_SUBCLASS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [x20, #56]
Lloh19:
	adrp	x8, _SRP_PROTOCOL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SRP_PROTOCOL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [x20, #48]
Lloh22:
	adrp	x8, _SRP_PROTOCOL_VERSION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SRP_PROTOCOL_VERSION@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [x20, #40]
	mov	x0, x22
	bl	_cpu_to_be16
	str	x0, [x20, #32]
	mov	w8, #4
	str	w8, [x20, #4]
Lloh25:
	adrp	x8, _srp_max_req_size@GOTPAGE
Lloh26:
	ldr	x8, [x8, _srp_max_req_size@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [x20, #24]
	ldr	w0, [x21]
	mov	w1, #16777216
	bl	_min
	bl	_cpu_to_be32
	mov	x8, x0
	mov	x0, #0
	str	x8, [x20, #16]
Lloh28:
	adrp	x8, _SRP_SEND_TO_IOC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SRP_SEND_TO_IOC@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _SRP_SEND_FROM_IOC@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SRP_SEND_FROM_IOC@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh34:
	adrp	x9, _SRP_RDMA_READ_FROM_IOC@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SRP_RDMA_READ_FROM_IOC@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _SRP_RDMA_WRITE_FROM_IOC@GOTPAGE
Lloh38:
	ldr	x10, [x10, _SRP_RDMA_WRITE_FROM_IOC@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh39:
	ldr	w9, [x10]
	orr	w8, w8, w9
	mov	w9, #1
	stp	w9, w8, [x20, #8]
LBB0_10:
	str	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_MAD_STATUS_INVALID_FIELD,4,2 ; @DM_MAD_STATUS_INVALID_FIELD
	.comm	_DM_MAD_STATUS_NO_IOC,4,2       ; @DM_MAD_STATUS_NO_IOC
	.comm	_MAX_SRPT_RQ_SIZE,4,2           ; @MAX_SRPT_RQ_SIZE
	.comm	_SRPT_ID_STRING,4,2             ; @SRPT_ID_STRING
	.comm	_srpt_service_guid,4,2          ; @srpt_service_guid
	.comm	_SRP_REV16A_IB_IO_CLASS,4,2     ; @SRP_REV16A_IB_IO_CLASS
	.comm	_SRP_IO_SUBCLASS,4,2            ; @SRP_IO_SUBCLASS
	.comm	_SRP_PROTOCOL,4,2               ; @SRP_PROTOCOL
	.comm	_SRP_PROTOCOL_VERSION,4,2       ; @SRP_PROTOCOL_VERSION
	.comm	_srp_max_req_size,4,2           ; @srp_max_req_size
	.comm	_SRP_SEND_TO_IOC,4,2            ; @SRP_SEND_TO_IOC
	.comm	_SRP_SEND_FROM_IOC,4,2          ; @SRP_SEND_FROM_IOC
	.comm	_SRP_RDMA_READ_FROM_IOC,4,2     ; @SRP_RDMA_READ_FROM_IOC
	.comm	_SRP_RDMA_WRITE_FROM_IOC,4,2    ; @SRP_RDMA_WRITE_FROM_IOC
	.no_dead_strip	_srpt_get_ioc
.subsections_via_symbols
