	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_lan_get_msg_rsp
_handle_lan_get_msg_rsp:                ## @handle_lan_get_msg_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	cmpl	$12, (%rsi)
	jg	LBB0_3
## %bb.1:
	movq	_invalid_lan_responses@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_ipmi_inc_stat
	jmp	LBB0_7
LBB0_3:
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_4
LBB0_7:
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_IPMI_LAN_ADDR_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -32(%rbp)
	movl	16(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	32(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movl	20(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movl	12(%rax), %ecx
	andl	$15, %ecx
	movl	%ecx, -44(%rbp)
	movl	12(%rax), %ecx
	sarl	$4, %ecx
	movl	%ecx, -40(%rbp)
	movl	36(%rax), %esi
	movl	%esi, %ecx
	andl	$3, %ecx
	movl	%ecx, -36(%rbp)
	sarl	$2, %esi
	movl	12(%rax), %edx
	movl	24(%rax), %r8d
	andl	$15, %edx
	movl	40(%rax), %ecx
	sarl	$2, %r8d
	andl	$-2, %r8d
	leaq	-24(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-56(%rbp), %r9
	movl	%r14d, %edi
	callq	_intf_find_seq
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_unhandled_lan_responses@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	-24(%rbp), %rax
	movl	16(%rax), %edi
	movq	8(%rbx), %rsi
	addq	$44, %rsi
	movl	(%rbx), %edx
	addl	$-11, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movl	24(%rax), %eax
	sarl	$2, %eax
	movq	-24(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movl	16(%rcx), %eax
	movl	%eax, 12(%rcx)
	movl	(%rbx), %eax
	addl	$-12, %eax
	movl	%eax, 8(%rcx)
	movq	_IPMI_RESPONSE_RECV_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_handled_lan_responses@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_ipmi_inc_stat
	movq	-24(%rbp), %rdi
	callq	_deliver_response
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_invalid_lan_responses,4,2      ## @invalid_lan_responses
	.comm	_IPMI_LAN_ADDR_TYPE,4,2         ## @IPMI_LAN_ADDR_TYPE
	.comm	_unhandled_lan_responses,4,2    ## @unhandled_lan_responses
	.comm	_IPMI_RESPONSE_RECV_TYPE,4,2    ## @IPMI_RESPONSE_RECV_TYPE
	.comm	_handled_lan_responses,4,2      ## @handled_lan_responses
	.no_dead_strip	_handle_lan_get_msg_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_lan_get_msg_rsp
_handle_lan_get_msg_rsp:                ; @handle_lan_get_msg_rsp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #12
	b.gt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _invalid_lan_responses@GOTPAGE
Lloh1:
	ldr	x8, [x8, _invalid_lan_responses@GOTPAGEOFF]
LBB0_2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipmi_inc_stat
	b	LBB0_4
LBB0_3:
	mov	x20, x1
	ldr	x8, [x1, #8]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_5
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
Lloh2:
	adrp	x9, _IPMI_LAN_ADDR_TYPE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IPMI_LAN_ADDR_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [sp, #40]
	ldp	w10, w9, [x8, #12]
	ldp	w11, w12, [x8, #32]
	stp	w9, w11, [sp, #16]
	and	w9, w10, #0xf
	ldp	w10, w11, [x8, #20]
	stp	w10, w9, [sp, #24]
	ldr	w9, [x8, #12]
	asr	w9, w9, #4
	and	w10, w12, #0x3
	stp	w9, w10, [sp, #32]
	asr	w1, w12, #2
	ldr	w9, [x8, #12]
	and	w2, w9, #0xf
	ldr	w3, [x8, #40]
	asr	w8, w11, #2
	and	w4, w8, #0xfffffffe
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x0, x19
	bl	_intf_find_seq
	cbz	x0, LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _unhandled_lan_responses@GOTPAGE
Lloh6:
	ldr	x8, [x8, _unhandled_lan_responses@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #16]
	ldr	x8, [x20, #8]
	add	x1, x8, #44
	ldr	w8, [x20]
	sub	w2, w8, #11
	bl	_memcpy
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #24]
	asr	w8, w8, #2
	ldr	x9, [sp, #8]
	str	w8, [x9, #4]
	ldr	w8, [x9, #16]
	str	w8, [x9, #12]
	ldr	w8, [x20]
	sub	w8, w8, #12
Lloh7:
	adrp	x10, _IPMI_RESPONSE_RECV_TYPE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IPMI_RESPONSE_RECV_TYPE@GOTPAGEOFF]
	str	w8, [x9, #8]
Lloh9:
	ldr	w8, [x10]
	str	w8, [x9]
Lloh10:
	adrp	x8, _handled_lan_responses@GOTPAGE
Lloh11:
	ldr	x8, [x8, _handled_lan_responses@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipmi_inc_stat
	ldr	x0, [sp, #8]
	bl	_deliver_response
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_invalid_lan_responses,4,2      ; @invalid_lan_responses
	.comm	_IPMI_LAN_ADDR_TYPE,4,2         ; @IPMI_LAN_ADDR_TYPE
	.comm	_unhandled_lan_responses,4,2    ; @unhandled_lan_responses
	.comm	_IPMI_RESPONSE_RECV_TYPE,4,2    ; @IPMI_RESPONSE_RECV_TYPE
	.comm	_handled_lan_responses,4,2      ; @handled_lan_responses
	.no_dead_strip	_handle_lan_get_msg_rsp
.subsections_via_symbols
