	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipmi_smi_msg_received          ## -- Begin function ipmi_smi_msg_received
	.p2align	4, 0x90
_ipmi_smi_msg_received:                 ## @ipmi_smi_msg_received
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$2, (%rsi)
	jl	LBB0_17
## %bb.1:
	movq	8(%r14), %rax
	movq	_IPMI_NETFN_APP_REQUEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	cmpl	%ecx, (%rax)
	jne	LBB0_17
## %bb.2:
	movl	4(%rax), %eax
	movq	_IPMI_SEND_MSG_CMD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.3:
	cmpq	$0, 40(%r14)
	je	LBB0_4
LBB0_17:
	cmpl	$0, (%rbx)
	je	LBB0_18
## %bb.19:
	addq	$32, %r14
	leaq	12(%rbx), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	jmp	LBB0_20
LBB0_18:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	addq	$32, %r14
	leaq	12(%rbx), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
LBB0_20:
	addq	$4, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_schedule               ## TAILCALL
LBB0_4:
	cmpl	$3, 16(%r14)
	jl	LBB0_15
## %bb.5:
	movq	24(%r14), %rax
	movl	8(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.6:
	movq	_IPMI_NODE_BUSY_ERR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_15
## %bb.7:
	movq	_IPMI_LOST_ARBITRATION_ERR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_15
## %bb.8:
	movq	_IPMI_BUS_ERR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_15
## %bb.9:
	movq	_IPMI_NAK_ON_WRITE_ERR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_15
## %bb.10:
	movl	12(%rax), %eax
	andl	$15, %eax
	movq	_IPMI_MAX_CHANNELS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_14
## %bb.11:
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_IPMI_CHANNEL_MEDIUM_8023LAN@GOTPCREL(%rip), %rcx
	movq	_IPMI_CHANNEL_MEDIUM_ASYNC@GOTPCREL(%rip), %rdi
	movq	_sent_lan_command_errs@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpq	(%rdi), %rax
	je	LBB0_13
## %bb.12:
	movq	_sent_ipmb_command_errs@GOTPCREL(%rip), %rsi
LBB0_13:
	cmpq	(%rcx), %rax
	cmoveq	%rdx, %rsi
	movl	(%rsi), %esi
	movq	%rbx, %rdi
	callq	_ipmi_inc_stat
LBB0_14:
	movl	36(%r14), %esi
	movq	24(%r14), %rax
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	callq	_intf_err_seq
	jmp	LBB0_16
LBB0_15:
	movl	36(%r14), %esi
	movq	%rbx, %rdi
	callq	_intf_start_seq_timer
LBB0_16:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipmi_free_smi_msg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPMI_NETFN_APP_REQUEST,4,2     ## @IPMI_NETFN_APP_REQUEST
	.comm	_IPMI_SEND_MSG_CMD,4,2          ## @IPMI_SEND_MSG_CMD
	.comm	_IPMI_NODE_BUSY_ERR,4,2         ## @IPMI_NODE_BUSY_ERR
	.comm	_IPMI_LOST_ARBITRATION_ERR,4,2  ## @IPMI_LOST_ARBITRATION_ERR
	.comm	_IPMI_BUS_ERR,4,2               ## @IPMI_BUS_ERR
	.comm	_IPMI_NAK_ON_WRITE_ERR,4,2      ## @IPMI_NAK_ON_WRITE_ERR
	.comm	_IPMI_MAX_CHANNELS,4,2          ## @IPMI_MAX_CHANNELS
	.comm	_IPMI_CHANNEL_MEDIUM_8023LAN,8,3 ## @IPMI_CHANNEL_MEDIUM_8023LAN
	.comm	_IPMI_CHANNEL_MEDIUM_ASYNC,8,3  ## @IPMI_CHANNEL_MEDIUM_ASYNC
	.comm	_sent_lan_command_errs,4,2      ## @sent_lan_command_errs
	.comm	_sent_ipmb_command_errs,4,2     ## @sent_ipmb_command_errs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipmi_smi_msg_received          ; -- Begin function ipmi_smi_msg_received
	.p2align	2
_ipmi_smi_msg_received:                 ; @ipmi_smi_msg_received
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _IPMI_NETFN_APP_REQUEST@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IPMI_NETFN_APP_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10, lsl #2
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x8, #4]
Lloh3:
	adrp	x9, _IPMI_SEND_MSG_CMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPMI_SEND_MSG_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_8
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
	add	x0, x20, #32
	add	x1, x19, #12
	bl	_list_add_tail
	b	LBB0_7
LBB0_6:
	add	x21, x19, #8
	mov	x0, x21
	mov	x1, #0
	bl	_spin_lock_irqsave
	add	x0, x20, #32
	add	x1, x19, #12
	bl	_list_add_tail
	mov	x0, x21
	mov	x1, #0
	bl	_spin_unlock_irqrestore
LBB0_7:
	add	x0, x19, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tasklet_schedule
LBB0_8:
	ldr	w8, [x20, #16]
	cmp	w8, #3
	b.lt	LBB0_14
; %bb.9:
	ldr	x8, [x20, #24]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_14
; %bb.10:
Lloh6:
	adrp	x10, _IPMI_NODE_BUSY_ERR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IPMI_NODE_BUSY_ERR@GOTPAGEOFF]
Lloh8:
	adrp	x11, _IPMI_LOST_ARBITRATION_ERR@GOTPAGE
Lloh9:
	ldr	x11, [x11, _IPMI_LOST_ARBITRATION_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _IPMI_BUS_ERR@GOTPAGE
Lloh13:
	ldr	x12, [x12, _IPMI_BUS_ERR@GOTPAGEOFF]
Lloh14:
	adrp	x13, _IPMI_NAK_ON_WRITE_ERR@GOTPAGE
Lloh15:
	ldr	x13, [x13, _IPMI_NAK_ON_WRITE_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
Lloh17:
	ldr	w13, [x13]
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	ccmp	w9, w12, #4, ne
	ccmp	w9, w13, #4, ne
	b.eq	LBB0_14
; %bb.11:
	ldr	w8, [x8, #12]
	and	x8, x8, #0xf
Lloh18:
	adrp	x9, _IPMI_MAX_CHANNELS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IPMI_MAX_CHANNELS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_13
; %bb.12:
	ldr	x9, [x19, #16]
	ldr	x8, [x9, x8, lsl #3]
Lloh21:
	adrp	x9, _IPMI_CHANNEL_MEDIUM_8023LAN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IPMI_CHANNEL_MEDIUM_8023LAN@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x10, _IPMI_CHANNEL_MEDIUM_ASYNC@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IPMI_CHANNEL_MEDIUM_ASYNC@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh27:
	adrp	x8, _sent_lan_command_errs@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sent_lan_command_errs@GOTPAGEOFF]
Lloh29:
	adrp	x9, _sent_ipmb_command_errs@GOTPAGE
Lloh30:
	ldr	x9, [x9, _sent_ipmb_command_errs@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipmi_inc_stat
LBB0_13:
	ldr	w1, [x20, #36]
	ldr	x8, [x20, #24]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_intf_err_seq
	b	LBB0_15
LBB0_14:
	ldr	w1, [x20, #36]
	mov	x0, x19
	bl	_intf_start_seq_timer
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ipmi_free_smi_msg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IPMI_NETFN_APP_REQUEST,4,2     ; @IPMI_NETFN_APP_REQUEST
	.comm	_IPMI_SEND_MSG_CMD,4,2          ; @IPMI_SEND_MSG_CMD
	.comm	_IPMI_NODE_BUSY_ERR,4,2         ; @IPMI_NODE_BUSY_ERR
	.comm	_IPMI_LOST_ARBITRATION_ERR,4,2  ; @IPMI_LOST_ARBITRATION_ERR
	.comm	_IPMI_BUS_ERR,4,2               ; @IPMI_BUS_ERR
	.comm	_IPMI_NAK_ON_WRITE_ERR,4,2      ; @IPMI_NAK_ON_WRITE_ERR
	.comm	_IPMI_MAX_CHANNELS,4,2          ; @IPMI_MAX_CHANNELS
	.comm	_IPMI_CHANNEL_MEDIUM_8023LAN,8,3 ; @IPMI_CHANNEL_MEDIUM_8023LAN
	.comm	_IPMI_CHANNEL_MEDIUM_ASYNC,8,3  ; @IPMI_CHANNEL_MEDIUM_ASYNC
	.comm	_sent_lan_command_errs,4,2      ; @sent_lan_command_errs
	.comm	_sent_ipmb_command_errs,4,2     ; @sent_ipmb_command_errs
.subsections_via_symbols
