	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_write_indirect_mbox
_tg3_write_indirect_mbox:               ## @tg3_write_indirect_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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_MAILBOX_RCVRET_CON_IDX_0@GOTPCREL(%rip), %rax
	movq	_TG3_64BIT_REG_LOW@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	(%rax), %rax
	addq	%rsi, %rax
	cmpq	%rbx, %rax
	jne	LBB0_4
## %bb.1:
	movl	8(%r15), %edi
	movq	_TG3PCI_RCV_RET_RING_CON_IDX@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_TG3_RX_STD_PROD_IDX_REG@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	8(%r15), %edi
	movq	_TG3PCI_STD_RING_PROD_IDX@GOTPCREL(%rip), %rax
LBB0_2:
	addq	(%rax), %rsi
	movq	%r14, %rdx
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_write_config_dword         ## TAILCALL
LBB0_6:
	leaq	12(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	8(%r15), %edi
	movq	_TG3PCI_REG_BASE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	22016(%rbx), %rdx
	callq	_pci_write_config_dword
	movl	8(%r15), %edi
	movq	_TG3PCI_REG_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdx
	callq	_pci_write_config_dword
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$1, %r14
	jne	LBB0_9
## %bb.7:
	movq	_MAILBOX_INTERRUPT_0@GOTPCREL(%rip), %rax
	movq	(%r13), %rcx
	addq	(%rax), %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_9
## %bb.8:
	movl	8(%r15), %edi
	movq	_TG3PCI_MISC_LOCAL_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_GRC_LCLCTRL_CLEARINT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	orq	(%r15), %rdx
	jmp	LBB0_3
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAILBOX_RCVRET_CON_IDX_0,8,3   ## @MAILBOX_RCVRET_CON_IDX_0
	.comm	_TG3_64BIT_REG_LOW,8,3          ## @TG3_64BIT_REG_LOW
	.comm	_TG3PCI_RCV_RET_RING_CON_IDX,8,3 ## @TG3PCI_RCV_RET_RING_CON_IDX
	.comm	_TG3_RX_STD_PROD_IDX_REG,8,3    ## @TG3_RX_STD_PROD_IDX_REG
	.comm	_TG3PCI_STD_RING_PROD_IDX,8,3   ## @TG3PCI_STD_RING_PROD_IDX
	.comm	_TG3PCI_REG_BASE_ADDR,8,3       ## @TG3PCI_REG_BASE_ADDR
	.comm	_TG3PCI_REG_DATA,8,3            ## @TG3PCI_REG_DATA
	.comm	_MAILBOX_INTERRUPT_0,8,3        ## @MAILBOX_INTERRUPT_0
	.comm	_TG3PCI_MISC_LOCAL_CTRL,8,3     ## @TG3PCI_MISC_LOCAL_CTRL
	.comm	_GRC_LCLCTRL_CLEARINT,8,3       ## @GRC_LCLCTRL_CLEARINT
	.no_dead_strip	_tg3_write_indirect_mbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_write_indirect_mbox
_tg3_write_indirect_mbox:               ; @tg3_write_indirect_mbox
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _MAILBOX_RCVRET_CON_IDX_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAILBOX_RCVRET_CON_IDX_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x23, _TG3_64BIT_REG_LOW@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TG3_64BIT_REG_LOW@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x9, x8, x9
	cmp	x9, x1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _TG3PCI_RCV_RET_RING_CON_IDX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TG3PCI_RCV_RET_RING_CON_IDX@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x21, x1
Lloh7:
	adrp	x9, _TG3_RX_STD_PROD_IDX_REG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TG3_RX_STD_PROD_IDX_REG@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x1
	b.ne	LBB0_6
; %bb.3:
Lloh10:
	adrp	x9, _TG3PCI_STD_RING_PROD_IDX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TG3PCI_STD_RING_PROD_IDX@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x19, #8]
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x2, x20
LBB0_5:
	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	_pci_write_config_dword
LBB0_6:
	add	x22, x19, #12
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x8, _TG3PCI_REG_BASE_ADDR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TG3PCI_REG_BASE_ADDR@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	w8, #22016
	add	x2, x21, x8
	bl	_pci_write_config_dword
	ldr	w0, [x19, #8]
Lloh15:
	adrp	x8, _TG3PCI_REG_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TG3PCI_REG_DATA@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x2, x20
	bl	_pci_write_config_dword
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cmp	x20, #1
	b.ne	LBB0_9
; %bb.7:
Lloh18:
	adrp	x8, _MAILBOX_INTERRUPT_0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAILBOX_INTERRUPT_0@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x9, x8
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19, #8]
Lloh21:
	adrp	x8, _TG3PCI_MISC_LOCAL_CTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TG3PCI_MISC_LOCAL_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
Lloh24:
	adrp	x8, _GRC_LCLCTRL_CLEARINT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GRC_LCLCTRL_CLEARINT@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh26:
	ldr	x8, [x8]
	orr	x2, x8, x9
	b	LBB0_5
LBB0_9:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAILBOX_RCVRET_CON_IDX_0,8,3   ; @MAILBOX_RCVRET_CON_IDX_0
	.comm	_TG3_64BIT_REG_LOW,8,3          ; @TG3_64BIT_REG_LOW
	.comm	_TG3PCI_RCV_RET_RING_CON_IDX,8,3 ; @TG3PCI_RCV_RET_RING_CON_IDX
	.comm	_TG3_RX_STD_PROD_IDX_REG,8,3    ; @TG3_RX_STD_PROD_IDX_REG
	.comm	_TG3PCI_STD_RING_PROD_IDX,8,3   ; @TG3PCI_STD_RING_PROD_IDX
	.comm	_TG3PCI_REG_BASE_ADDR,8,3       ; @TG3PCI_REG_BASE_ADDR
	.comm	_TG3PCI_REG_DATA,8,3            ; @TG3PCI_REG_DATA
	.comm	_MAILBOX_INTERRUPT_0,8,3        ; @MAILBOX_INTERRUPT_0
	.comm	_TG3PCI_MISC_LOCAL_CTRL,8,3     ; @TG3PCI_MISC_LOCAL_CTRL
	.comm	_GRC_LCLCTRL_CLEARINT,8,3       ; @GRC_LCLCTRL_CLEARINT
	.no_dead_strip	_tg3_write_indirect_mbox
.subsections_via_symbols
