	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4_record_mbox
_t4_record_mbox:                        ## @t4_record_mbox
	.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
	movl	%r8d, %r15d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movq	(%r12), %rsi
	leaq	1(%rsi), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mbox_cmd_log_entry
	movq	%rax, %r13
	movq	(%r12), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_2
## %bb.1:
	movq	$0, (%r12)
LBB0_2:
	xorl	%eax, %eax
	cmpl	$8, %ebx
	jb	LBB0_6
## %bb.3:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	shrl	$3, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r15,4), %edi
	callq	_be64_to_cpu
	movq	24(%r13), %rcx
	movq	%rax, (%rcx,%r15,8)
	incq	%r15
	cmpq	%r15, %rbx
	jne	LBB0_4
## %bb.5:
	movl	%ebx, %eax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_6:
	movq	_MBOX_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	7(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$3, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_8
## %bb.7:
	movl	%eax, %edi
	shlq	$3, %rdi
	addq	24(%r13), %rdi
	notl	%eax
	addl	%eax, %ecx
	leaq	8(,%rcx,8), %rsi
	callq	___bzero
LBB0_8:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movslq	16(%r12), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%r12)
	movq	%rax, 8(%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	movl	%r15d, 4(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBOX_LEN,4,2                   ## @MBOX_LEN
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_t4_record_mbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4_record_mbox
_t4_record_mbox:                        ; @t4_record_mbox
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x24, x2
	mov	x23, x1
	ldr	x21, [x0]
	ldr	x1, [x21]
	add	x8, x1, #1
	str	x8, [x21]
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_mbox_cmd_log_entry
	mov	x22, x0
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x21]
LBB0_2:
	cmp	w24, #8
	b.hs	LBB0_4
; %bb.3:
	mov	w24, #0
	b	LBB0_6
LBB0_4:
	mov	x25, #0
	lsr	w24, w24, #3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, x25, lsl #2]
	bl	_be64_to_cpu
	ldr	x8, [x22, #24]
	str	x0, [x8, x25, lsl #3]
	add	x25, x25, #1
	cmp	x24, x25
	b.ne	LBB0_5
LBB0_6:
Lloh0:
	adrp	x8, _MBOX_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBOX_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w24, w8
	b.ge	LBB0_8
; %bb.7:
	ldr	x9, [x22, #24]
	add	x0, x9, w24, uxtw #3
	mvn	w9, w24
	add	w8, w8, w9
	lsl	x8, x8, #3
	add	x1, x8, #8
	bl	_bzero
LBB0_8:
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22, #16]
	ldrsw	x8, [x21, #16]
	add	w9, w8, #1
	str	w9, [x21, #16]
	str	x8, [x22, #8]
	stp	w20, w19, [x22]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBOX_LEN,4,2                   ; @MBOX_LEN
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_t4_record_mbox
.subsections_via_symbols
