	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mgmt_recv_msg_handler
_mgmt_recv_msg_handler:                 ## @mgmt_recv_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movq	32(%rsi), %rcx
	movl	$0, -44(%rbp)
	movq	(%rsi), %rdx
	movq	_HINIC_MOD_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jae	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	leaq	(%rdx,%rdx,2), %r12
	leaq	(%r14,%r12,8), %rdi
	movq	_HINIC_MGMT_CB_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_HINIC_MGMT_CB_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	orq	%rsi, %rdx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_cmpxchg
	movq	_HINIC_MGMT_CB_ENABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	16(%r14,%r12,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r14,%r12,8), %edi
	movl	24(%rbx), %edx
	movl	12(%rbx), %esi
	movl	20(%rbx), %ecx
	leaq	-44(%rbp), %r9
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	*%rax
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_5:
	movq	_HINIC_MGMT_CB_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	andq	%rax, (%rcx)
	cmpl	$0, 16(%rbx)
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rsi
	movl	12(%rbx), %edx
	movl	-44(%rbp), %r8d
	movq	_MGMT_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_msg_to_mgmt_async
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_MOD_MAX,8,3              ## @HINIC_MOD_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown MGMT MSG module = %d\n"

	.comm	_HINIC_MGMT_CB_ENABLED,8,3      ## @HINIC_MGMT_CB_ENABLED
	.comm	_HINIC_MGMT_CB_RUNNING,8,3      ## @HINIC_MGMT_CB_RUNNING
L_.str.1:                               ## @.str.1
	.asciz	"No MGMT msg handler, mod = %d\n"

	.comm	_MGMT_RESP,4,2                  ## @MGMT_RESP
	.no_dead_strip	_mgmt_recv_msg_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mgmt_recv_msg_handler
_mgmt_recv_msg_handler:                 ; @mgmt_recv_msg_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #8]
	ldr	x23, [x8]
	ldr	x21, [x1, #32]
	str	wzr, [sp, #12]
	ldr	x24, [x1]
Lloh0:
	adrp	x8, _HINIC_MOD_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_MOD_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x24, x8
	b.hs	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x26, [x0]
	mov	w8, #24
Lloh3:
	adrp	x27, _HINIC_MGMT_CB_ENABLED@GOTPAGE
Lloh4:
	ldr	x27, [x27, _HINIC_MGMT_CB_ENABLED@GOTPAGEOFF]
	madd	x22, x24, x8, x26
	ldr	x1, [x27]
Lloh5:
	adrp	x25, _HINIC_MGMT_CB_RUNNING@GOTPAGE
Lloh6:
	ldr	x25, [x25, _HINIC_MGMT_CB_RUNNING@GOTPAGEOFF]
	ldr	x8, [x25]
	orr	x2, x8, x1
	mov	x0, x22
	bl	_cmpxchg
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	w8, #24
	madd	x8, x24, x8, x26
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_5
; %bb.3:
	mov	w9, #24
	madd	x9, x24, x9, x26
	ldr	w0, [x9, #8]
	ldr	w1, [x20, #12]
	ldp	w3, w2, [x20, #20]
	add	x5, sp, #12
	mov	x4, x21
	blr	x8
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_dev_err
LBB0_5:
	ldr	x2, [x20]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dev_err
LBB0_6:
	ldr	x8, [x25]
	ldr	x9, [x22]
	bic	x8, x9, x8
	str	x8, [x22]
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	x1, [x20]
	ldr	w4, [sp, #12]
Lloh11:
	adrp	x8, _MGMT_RESP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MGMT_RESP@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	ldp	w6, w2, [x20, #8]
	mov	x0, x19
	mov	x3, x21
	bl	_msg_to_mgmt_async
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_MOD_MAX,8,3              ; @HINIC_MOD_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown MGMT MSG module = %d\n"

	.comm	_HINIC_MGMT_CB_ENABLED,8,3      ; @HINIC_MGMT_CB_ENABLED
	.comm	_HINIC_MGMT_CB_RUNNING,8,3      ; @HINIC_MGMT_CB_RUNNING
l_.str.1:                               ; @.str.1
	.asciz	"No MGMT msg handler, mod = %d\n"

	.comm	_MGMT_RESP,4,2                  ; @MGMT_RESP
	.no_dead_strip	_mgmt_recv_msg_handler
.subsections_via_symbols
