	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_msg_timeout
_check_msg_timeout:                     ## @check_msg_timeout
	.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
	cmpl	$-1, (%rdi)
	je	LBB0_21
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, 40(%rsi)
	je	LBB0_21
## %bb.2:
	subq	%rcx, (%rbx)
	jle	LBB0_3
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r15
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.10:
	movq	%r9, %r14
	movq	_MAX_MSG_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	decq	%rax
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %rsi
	movl	24(%rbx), %ecx
	movq	%r15, %rdi
	movl	%r8d, %edx
	callq	_smi_from_recv_msg
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movq	%rax, %r13
	leaq	4(%r15), %r12
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$0, 16(%r15)
	je	LBB0_19
## %bb.15:
	movq	16(%rbx), %rdi
	callq	_is_lan_addr
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:
	movq	_retransmitted_ipmb_commands@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_4:
	movq	$0, 40(%rbx)
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	movq	%rdx, %rsi
	callq	_list_add_tail
	cmpq	$0, 32(%rbx)
	je	LBB0_7
## %bb.5:
	movq	_timed_out_ipmb_broadcasts@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movq	16(%rbx), %rdi
	callq	_is_lan_addr
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_dropped_rexmit_lan_commands@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_19:
	movq	%r13, %rdi
	callq	_ipmi_free_smi_msg
	jmp	LBB0_20
LBB0_7:
	movq	16(%rbx), %rdi
	callq	_is_lan_addr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_timed_out_lan_commands@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_16:
	movq	_retransmitted_lan_commands@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ipmi_inc_stat
	movq	16(%r15), %rax
	movl	8(%r15), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	*(%rax)
LBB0_20:
	movq	(%r14), %rsi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_lock_irqsave              ## TAILCALL
LBB0_13:
	movq	_dropped_rexmit_ipmb_commands@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	_timed_out_ipmb_commands@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipmi_inc_stat                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_timed_out_ipmb_broadcasts,4,2  ## @timed_out_ipmb_broadcasts
	.comm	_timed_out_lan_commands,4,2     ## @timed_out_lan_commands
	.comm	_timed_out_ipmb_commands,4,2    ## @timed_out_ipmb_commands
	.comm	_MAX_MSG_TIMEOUT,8,3            ## @MAX_MSG_TIMEOUT
	.comm	_dropped_rexmit_lan_commands,4,2 ## @dropped_rexmit_lan_commands
	.comm	_dropped_rexmit_ipmb_commands,4,2 ## @dropped_rexmit_ipmb_commands
	.comm	_retransmitted_lan_commands,4,2 ## @retransmitted_lan_commands
	.comm	_retransmitted_ipmb_commands,4,2 ## @retransmitted_ipmb_commands
	.no_dead_strip	_check_msg_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_msg_timeout
_check_msg_timeout:                     ; @check_msg_timeout
	.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
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x21]
	sub	x8, x8, x3
	str	x8, [x21]
	cmp	x8, #0
	b.le	LBB0_4
LBB0_3:
	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_4:
	mov	x19, x0
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x20, x5
Lloh0:
	adrp	x9, _MAX_MSG_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_MSG_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x8, x8, #1
	stp	x9, x8, [x21]
	ldr	x1, [x21, #16]
	ldr	w3, [x21, #24]
	mov	x0, x19
	mov	x2, x4
	bl	_smi_from_recv_msg
	cbz	x0, LBB0_10
; %bb.6:
	mov	x23, x0
	add	x22, x19, #4
	ldr	x1, [x20]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.7:
	ldr	x0, [x21, #16]
	bl	_is_lan_addr
Lloh3:
	adrp	x8, _retransmitted_ipmb_commands@GOTPAGE
Lloh4:
	ldr	x8, [x8, _retransmitted_ipmb_commands@GOTPAGEOFF]
Lloh5:
	adrp	x9, _retransmitted_lan_commands@GOTPAGE
Lloh6:
	ldr	x9, [x9, _retransmitted_lan_commands@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipmi_inc_stat
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w0, [x19, #8]
	mov	x1, x23
	mov	w2, #0
	blr	x8
	b	LBB0_13
LBB0_8:
	str	xzr, [x21, #40]
	ldr	x8, [x21, #16]
	add	x0, x8, #4
	mov	x1, x2
	bl	_list_add_tail
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_14
; %bb.9:
Lloh7:
	adrp	x8, _timed_out_ipmb_broadcasts@GOTPAGE
Lloh8:
	ldr	x8, [x8, _timed_out_ipmb_broadcasts@GOTPAGEOFF]
	b	LBB0_18
LBB0_10:
	ldr	x0, [x21, #16]
	bl	_is_lan_addr
	cbz	x0, LBB0_16
; %bb.11:
Lloh9:
	adrp	x8, _dropped_rexmit_lan_commands@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dropped_rexmit_lan_commands@GOTPAGEOFF]
	b	LBB0_18
LBB0_12:
	mov	x0, x23
	bl	_ipmi_free_smi_msg
LBB0_13:
	ldr	x1, [x20]
	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	_spin_lock_irqsave
LBB0_14:
	ldr	x0, [x21, #16]
	bl	_is_lan_addr
	cbz	x0, LBB0_17
; %bb.15:
Lloh11:
	adrp	x8, _timed_out_lan_commands@GOTPAGE
Lloh12:
	ldr	x8, [x8, _timed_out_lan_commands@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh13:
	adrp	x8, _dropped_rexmit_ipmb_commands@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dropped_rexmit_ipmb_commands@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh15:
	adrp	x8, _timed_out_ipmb_commands@GOTPAGE
Lloh16:
	ldr	x8, [x8, _timed_out_ipmb_commands@GOTPAGEOFF]
LBB0_18:
	ldr	w1, [x8]
	mov	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
	b	_ipmi_inc_stat
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_timed_out_ipmb_broadcasts,4,2  ; @timed_out_ipmb_broadcasts
	.comm	_timed_out_lan_commands,4,2     ; @timed_out_lan_commands
	.comm	_timed_out_ipmb_commands,4,2    ; @timed_out_ipmb_commands
	.comm	_MAX_MSG_TIMEOUT,8,3            ; @MAX_MSG_TIMEOUT
	.comm	_dropped_rexmit_lan_commands,4,2 ; @dropped_rexmit_lan_commands
	.comm	_dropped_rexmit_ipmb_commands,4,2 ; @dropped_rexmit_ipmb_commands
	.comm	_retransmitted_lan_commands,4,2 ; @retransmitted_lan_commands
	.comm	_retransmitted_ipmb_commands,4,2 ; @retransmitted_ipmb_commands
	.no_dead_strip	_check_msg_timeout
.subsections_via_symbols
