	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_flags
_handle_flags:                          ## @handle_flags
	.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	%rdi, %rbx
	movq	_WDT_PRE_TIMEOUT_INT@GOTPCREL(%rip), %r14
	movq	_RECEIVE_MSG_AVAIL@GOTPCREL(%rip), %r15
	movq	_EVENT_MSG_BUFFER_FULL@GOTPCREL(%rip), %r12
	movq	_OEM_DATA_AVAIL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	jne	LBB0_15
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, (%r15)
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, (%r12)
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_1
	jmp	LBB0_14
LBB0_15:
	movq	_watchdog_pretimeouts@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smi_inc_stat
	movq	%rbx, %rdi
	callq	_start_clear_flags
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movl	48(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipmi_smi_watchdog_pretimeout   ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
	callq	_ipmi_alloc_smi_msg
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	callq	_enable_si_irq
	movq	_IPMI_NETFN_APP_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movq	24(%rbx), %rcx
	movq	(%rcx), %rsi
	movl	%eax, (%rsi)
	movq	_IPMI_GET_MSG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi)
	movl	$2, 8(%rcx)
	movq	40(%rbx), %rax
	movl	32(%rbx), %edi
	movl	$2, %edx
	callq	*(%rax)
	movq	_SI_GETTING_MESSAGES@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	xorl	%eax, %eax
	callq	_ipmi_alloc_smi_msg
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.10:
	movq	%rbx, %rdi
	callq	_enable_si_irq
	movq	_IPMI_NETFN_APP_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movq	24(%rbx), %rcx
	movq	(%rcx), %rsi
	movl	%eax, (%rsi)
	movq	_IPMI_READ_EVENT_MSG_BUFFER_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi)
	movl	$2, 8(%rcx)
	movq	40(%rbx), %rax
	movl	32(%rbx), %edi
	movl	$2, %edx
	callq	*(%rax)
	movq	_SI_GETTING_EVENTS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_disable_si_irq
LBB0_5:
	movq	_SI_NORMAL@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WDT_PRE_TIMEOUT_INT,4,2        ## @WDT_PRE_TIMEOUT_INT
	.comm	_watchdog_pretimeouts,4,2       ## @watchdog_pretimeouts
	.comm	_RECEIVE_MSG_AVAIL,4,2          ## @RECEIVE_MSG_AVAIL
	.comm	_SI_NORMAL,8,3                  ## @SI_NORMAL
	.comm	_IPMI_NETFN_APP_REQUEST,4,2     ## @IPMI_NETFN_APP_REQUEST
	.comm	_IPMI_GET_MSG_CMD,4,2           ## @IPMI_GET_MSG_CMD
	.comm	_SI_GETTING_MESSAGES,8,3        ## @SI_GETTING_MESSAGES
	.comm	_EVENT_MSG_BUFFER_FULL,4,2      ## @EVENT_MSG_BUFFER_FULL
	.comm	_IPMI_READ_EVENT_MSG_BUFFER_CMD,4,2 ## @IPMI_READ_EVENT_MSG_BUFFER_CMD
	.comm	_SI_GETTING_EVENTS,8,3          ## @SI_GETTING_EVENTS
	.comm	_OEM_DATA_AVAIL,4,2             ## @OEM_DATA_AVAIL
	.no_dead_strip	_handle_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_flags
_handle_flags:                          ; @handle_flags
	.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, x0
Lloh0:
	adrp	x20, _WDT_PRE_TIMEOUT_INT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WDT_PRE_TIMEOUT_INT@GOTPAGEOFF]
Lloh2:
	adrp	x21, _RECEIVE_MSG_AVAIL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RECEIVE_MSG_AVAIL@GOTPAGEOFF]
Lloh4:
	adrp	x22, _EVENT_MSG_BUFFER_FULL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _EVENT_MSG_BUFFER_FULL@GOTPAGEOFF]
Lloh6:
	adrp	x23, _OEM_DATA_AVAIL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _OEM_DATA_AVAIL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_1
	b	LBB0_15
LBB0_7:
Lloh8:
	adrp	x8, _watchdog_pretimeouts@GOTPAGE
Lloh9:
	ldr	x8, [x8, _watchdog_pretimeouts@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smi_inc_stat
	mov	x0, x19
	bl	_start_clear_flags
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x19, #48]
	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_smi_watchdog_pretimeout
LBB0_8:
	bl	_ipmi_alloc_smi_msg
	str	x0, [x19, #24]
	cbz	x0, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_enable_si_irq
Lloh11:
	adrp	x8, _IPMI_NETFN_APP_REQUEST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPMI_NETFN_APP_REQUEST@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	ldr	x9, [x19, #24]
	ldr	x1, [x9]
	str	w8, [x1]
Lloh14:
	adrp	x8, _IPMI_GET_MSG_CMD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IPMI_GET_MSG_CMD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x1, #4]
	mov	w8, #2
	str	w8, [x9, #8]
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	w0, [x19, #32]
	mov	w2, #2
	blr	x8
Lloh17:
	adrp	x8, _SI_GETTING_MESSAGES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SI_GETTING_MESSAGES@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	bl	_ipmi_alloc_smi_msg
	str	x0, [x19, #24]
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_enable_si_irq
Lloh19:
	adrp	x8, _IPMI_NETFN_APP_REQUEST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IPMI_NETFN_APP_REQUEST@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	ldr	x9, [x19, #24]
	ldr	x1, [x9]
	str	w8, [x1]
Lloh22:
	adrp	x8, _IPMI_READ_EVENT_MSG_BUFFER_CMD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IPMI_READ_EVENT_MSG_BUFFER_CMD@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x1, #4]
	mov	w8, #2
	str	w8, [x9, #8]
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	w0, [x19, #32]
	mov	w2, #2
	blr	x8
Lloh25:
	adrp	x8, _SI_GETTING_EVENTS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SI_GETTING_EVENTS@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_disable_si_irq
LBB0_13:
Lloh27:
	adrp	x8, _SI_NORMAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SI_NORMAL@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_WDT_PRE_TIMEOUT_INT,4,2        ; @WDT_PRE_TIMEOUT_INT
	.comm	_watchdog_pretimeouts,4,2       ; @watchdog_pretimeouts
	.comm	_RECEIVE_MSG_AVAIL,4,2          ; @RECEIVE_MSG_AVAIL
	.comm	_SI_NORMAL,8,3                  ; @SI_NORMAL
	.comm	_IPMI_NETFN_APP_REQUEST,4,2     ; @IPMI_NETFN_APP_REQUEST
	.comm	_IPMI_GET_MSG_CMD,4,2           ; @IPMI_GET_MSG_CMD
	.comm	_SI_GETTING_MESSAGES,8,3        ; @SI_GETTING_MESSAGES
	.comm	_EVENT_MSG_BUFFER_FULL,4,2      ; @EVENT_MSG_BUFFER_FULL
	.comm	_IPMI_READ_EVENT_MSG_BUFFER_CMD,4,2 ; @IPMI_READ_EVENT_MSG_BUFFER_CMD
	.comm	_SI_GETTING_EVENTS,8,3          ; @SI_GETTING_EVENTS
	.comm	_OEM_DATA_AVAIL,4,2             ; @OEM_DATA_AVAIL
	.no_dead_strip	_handle_flags
.subsections_via_symbols
