	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_update_mailbox
_atl1_update_mailbox:                   ## @atl1_update_mailbox
	.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	%rdi, %r14
	callq	_spin_lock_irqsave
	leaq	24(%r14), %rdi
	callq	_atomic_read
	movl	%eax, %r15d
	leaq	20(%r14), %rdi
	callq	_atomic_read
	movl	%eax, %ebx
	leaq	16(%r14), %rdi
	callq	_atomic_read
	movq	_MB_RFD_PROD_INDX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_MB_RFD_PROD_INDX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_MB_RRD_CONS_INDX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_MB_RRD_CONS_INDX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	movq	_MB_TPD_PROD_INDX_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_MB_TPD_PROD_INDX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	orl	%ebx, %r15d
	movq	_REG_MAILBOX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%r15d, %edi
	callq	_iowrite32
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_RFD_PROD_INDX_MASK,4,2      ## @MB_RFD_PROD_INDX_MASK
	.comm	_MB_RFD_PROD_INDX_SHIFT,4,2     ## @MB_RFD_PROD_INDX_SHIFT
	.comm	_MB_RRD_CONS_INDX_MASK,4,2      ## @MB_RRD_CONS_INDX_MASK
	.comm	_MB_RRD_CONS_INDX_SHIFT,4,2     ## @MB_RRD_CONS_INDX_SHIFT
	.comm	_MB_TPD_PROD_INDX_MASK,4,2      ## @MB_TPD_PROD_INDX_MASK
	.comm	_MB_TPD_PROD_INDX_SHIFT,4,2     ## @MB_TPD_PROD_INDX_SHIFT
	.comm	_REG_MAILBOX,8,3                ## @REG_MAILBOX
	.no_dead_strip	_atl1_update_mailbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1_update_mailbox
_atl1_update_mailbox:                   ; @atl1_update_mailbox
	.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	x19, x0
	bl	_spin_lock_irqsave
	add	x0, x19, #24
	bl	_atomic_read
	mov	x20, x0
	add	x0, x19, #20
	bl	_atomic_read
	mov	x21, x0
	add	x0, x19, #16
	bl	_atomic_read
Lloh0:
	adrp	x8, _MB_RFD_PROD_INDX_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MB_RFD_PROD_INDX_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh3:
	adrp	x9, _MB_RFD_PROD_INDX_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MB_RFD_PROD_INDX_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x9, _MB_RRD_CONS_INDX_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MB_RRD_CONS_INDX_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MB_RRD_CONS_INDX_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MB_RRD_CONS_INDX_SHIFT@GOTPAGEOFF]
	and	w9, w9, w0
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _MB_TPD_PROD_INDX_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MB_TPD_PROD_INDX_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w20
Lloh15:
	adrp	x10, _MB_TPD_PROD_INDX_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MB_TPD_PROD_INDX_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _REG_MAILBOX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _REG_MAILBOX@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	mov	x0, x19
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_RFD_PROD_INDX_MASK,4,2      ; @MB_RFD_PROD_INDX_MASK
	.comm	_MB_RFD_PROD_INDX_SHIFT,4,2     ; @MB_RFD_PROD_INDX_SHIFT
	.comm	_MB_RRD_CONS_INDX_MASK,4,2      ; @MB_RRD_CONS_INDX_MASK
	.comm	_MB_RRD_CONS_INDX_SHIFT,4,2     ; @MB_RRD_CONS_INDX_SHIFT
	.comm	_MB_TPD_PROD_INDX_MASK,4,2      ; @MB_TPD_PROD_INDX_MASK
	.comm	_MB_TPD_PROD_INDX_SHIFT,4,2     ; @MB_TPD_PROD_INDX_SHIFT
	.comm	_REG_MAILBOX,8,3                ; @REG_MAILBOX
	.no_dead_strip	_atl1_update_mailbox
.subsections_via_symbols
