	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_mgmt_msg_handler
_recv_mgmt_msg_handler:                 ## @recv_mgmt_msg_handler
	.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, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movl	(%rsi), %edi
	movq	_SEQID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_MSG_HEADER_GET
	movq	%rax, %rbx
	movl	(%r13), %edi
	movq	_SEG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_MSG_HEADER_GET
	movq	%rax, %rcx
	movq	_MAX_MSG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SEGMENT_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cltd
	idivl	%edi
	cmpl	%ebx, %eax
	jle	LBB0_5
## %bb.1:
	leaq	16(%r13), %rsi
	imull	%ebx, %edi
	movslq	%edi, %rdi
	addq	40(%r15), %rdi
	movl	%ecx, %edx
	callq	_memcpy
	movl	(%r13), %edi
	movq	_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_MSG_HEADER_GET
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%r13), %edi
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_MSG_HEADER_GET
	movq	%rax, 32(%r15)
	movl	(%r13), %edi
	movq	_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_MSG_HEADER_GET
	movq	%rax, 24(%r15)
	movl	(%r13), %edi
	movq	_ASYNC_MGMT_TO_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_MSG_HEADER_GET
	movq	%rax, 16(%r15)
	movl	(%r13), %edi
	movq	_MSG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_MSG_HEADER_GET
	movq	%rax, 8(%r15)
	movl	(%r13), %edi
	movq	_MSG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_MSG_HEADER_GET
	movq	%rax, (%r15)
	movl	(%r13), %edi
	movq	_DIRECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_MSG_HEADER_GET
	movq	_MGMT_RESP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mgmt_recv_msg_handler          ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mgmt_resp_msg_handler          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEQID,4,2                      ## @SEQID
	.comm	_SEG_LEN,4,2                    ## @SEG_LEN
	.comm	_MAX_MSG_LEN,4,2                ## @MAX_MSG_LEN
	.comm	_SEGMENT_LEN,4,2                ## @SEGMENT_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recv big mgmt msg\n"

	.comm	_LAST,4,2                       ## @LAST
	.comm	_CMD,4,2                        ## @CMD
	.comm	_MODULE,4,2                     ## @MODULE
	.comm	_ASYNC_MGMT_TO_PF,4,2           ## @ASYNC_MGMT_TO_PF
	.comm	_MSG_LEN,4,2                    ## @MSG_LEN
	.comm	_MSG_ID,4,2                     ## @MSG_ID
	.comm	_DIRECTION,4,2                  ## @DIRECTION
	.comm	_MGMT_RESP,8,3                  ## @MGMT_RESP
	.no_dead_strip	_recv_mgmt_msg_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_mgmt_msg_handler
_recv_mgmt_msg_handler:                 ; @recv_mgmt_msg_handler
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _SEQID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEQID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_HINIC_MSG_HEADER_GET
	mov	x23, x0
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _SEG_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEG_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_HINIC_MSG_HEADER_GET
Lloh6:
	adrp	x8, _MAX_MSG_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_MSG_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
Lloh9:
	adrp	x8, _SEGMENT_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEGMENT_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sdiv	w9, w9, w8
	cmp	w9, w23
	b.le	LBB0_4
; %bb.1:
	mov	x2, x0
	add	x1, x21, #16
	ldr	x9, [x19, #40]
	mul	w8, w8, w23
	add	x0, x9, w8, sxtw
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	w0, [x21]
Lloh12:
	adrp	x8, _LAST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LAST@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_HINIC_MSG_HEADER_GET
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _CMD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_HINIC_MSG_HEADER_GET
	str	x0, [x19, #32]
	ldr	w0, [x21]
Lloh18:
	adrp	x8, _MODULE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MODULE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_HINIC_MSG_HEADER_GET
	str	x0, [x19, #24]
	ldr	w0, [x21]
Lloh21:
	adrp	x8, _ASYNC_MGMT_TO_PF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ASYNC_MGMT_TO_PF@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_HINIC_MSG_HEADER_GET
	str	x0, [x19, #16]
	ldr	w0, [x21]
Lloh24:
	adrp	x8, _MSG_LEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_LEN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_HINIC_MSG_HEADER_GET
	str	x0, [x19, #8]
	ldr	w0, [x21]
Lloh27:
	adrp	x8, _MSG_ID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_ID@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_HINIC_MSG_HEADER_GET
	str	x0, [x19]
	ldr	w0, [x21]
Lloh30:
	adrp	x8, _DIRECTION@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DIRECTION@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_HINIC_MSG_HEADER_GET
Lloh33:
	adrp	x8, _MGMT_RESP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MGMT_RESP@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, 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
	b	_mgmt_recv_msg_handler
LBB0_4:
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	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
	b	_dev_err
LBB0_5:
	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
LBB0_6:
	mov	x0, x20
	mov	x1, 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
	b	_mgmt_resp_msg_handler
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_SEQID,4,2                      ; @SEQID
	.comm	_SEG_LEN,4,2                    ; @SEG_LEN
	.comm	_MAX_MSG_LEN,4,2                ; @MAX_MSG_LEN
	.comm	_SEGMENT_LEN,4,2                ; @SEGMENT_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recv big mgmt msg\n"

	.comm	_LAST,4,2                       ; @LAST
	.comm	_CMD,4,2                        ; @CMD
	.comm	_MODULE,4,2                     ; @MODULE
	.comm	_ASYNC_MGMT_TO_PF,4,2           ; @ASYNC_MGMT_TO_PF
	.comm	_MSG_LEN,4,2                    ; @MSG_LEN
	.comm	_MSG_ID,4,2                     ; @MSG_ID
	.comm	_DIRECTION,4,2                  ; @DIRECTION
	.comm	_MGMT_RESP,8,3                  ; @MGMT_RESP
	.no_dead_strip	_recv_mgmt_msg_handler
.subsections_via_symbols
