	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_mailbox_command
_ql_mailbox_command:                    ## @ql_mailbox_command
	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	_INTR_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_INTR_MASK_PI@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	shll	$16, %edx
	movq	%rbx, %rdi
	callq	_ql_write32
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ql_exec_mb_cmd
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_MB_CMD_MAKE_SYS_ERR@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.2:
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	_MAILBOX_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	imulq	(%rax), %r12
	addq	(%r13), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rdi
	movq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ql_wait_mbx_cmd_cmplt
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ql_mpi_handler
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	$61440, %ecx                    ## imm = 0xF000
	andl	%ecx, %eax
	movq	_MB_CMD_STS_GOOD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MB_CMD_STS_INTRMDT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
LBB0_11:
	movq	_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_CMD_CLR_R2PCI_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ql_write32
	movq	8(%r15), %rcx
	movl	$61440, %eax                    ## imm = 0xF000
	andl	(%rcx), %eax
	movq	_MB_CMD_STS_GOOD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	_INTR_MASK@GOTPCREL(%rip), %r12
	movq	_INTR_MASK_PI@GOTPCREL(%rip), %r13
	je	LBB0_14
## %bb.12:
	movq	_MB_CMD_STS_INTRMDT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.13:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_10:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_5:
	movl	%eax, %r14d
LBB0_6:
	movq	_INTR_MASK@GOTPCREL(%rip), %r12
	movq	_INTR_MASK_PI@GOTPCREL(%rip), %r13
LBB0_14:
	movl	(%r12), %esi
	movl	(%r13), %eax
	movl	%eax, %edx
	shll	$16, %edx
	orl	%eax, %edx
	movq	%rbx, %rdi
	callq	_ql_write32
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTR_MASK,4,2                  ## @INTR_MASK
	.comm	_INTR_MASK_PI,4,2               ## @INTR_MASK_PI
	.comm	_MB_CMD_MAKE_SYS_ERR,8,3        ## @MB_CMD_MAKE_SYS_ERR
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_MAILBOX_TIMEOUT,8,3            ## @MAILBOX_TIMEOUT
	.comm	_MB_CMD_STS_GOOD,4,2            ## @MB_CMD_STS_GOOD
	.comm	_MB_CMD_STS_INTRMDT,4,2         ## @MB_CMD_STS_INTRMDT
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timed out waiting for mailbox complete.\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_CSR,4,2                        ## @CSR
	.comm	_CSR_CMD_CLR_R2PCI_INT,4,2      ## @CSR_CMD_CLR_R2PCI_INT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ql_mailbox_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_mailbox_command
_ql_mailbox_command:                    ; @ql_mailbox_command
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x23, _INTR_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INTR_MASK@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _INTR_MASK_PI@GOTPAGE
Lloh3:
	ldr	x24, [x24, _INTR_MASK_PI@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	w2, w8, #16
	mov	x0, x19
	bl	_ql_write32
	mov	x0, x19
	mov	x1, x20
	bl	_ql_exec_mb_cmd
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _MB_CMD_MAKE_SYS_ERR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MB_CMD_MAKE_SYS_ERR@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	w22, #0
	b	LBB0_13
LBB0_3:
Lloh7:
	adrp	x27, _jiffies@GOTPAGE
Lloh8:
	ldr	x27, [x27, _jiffies@GOTPAGEOFF]
	ldr	x8, [x27]
Lloh9:
	adrp	x9, _HZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _MAILBOX_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MAILBOX_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	madd	x21, x10, x9, x8
Lloh15:
	adrp	x25, _MB_CMD_STS_GOOD@GOTPAGE
Lloh16:
	ldr	x25, [x25, _MB_CMD_STS_GOOD@GOTPAGEOFF]
Lloh17:
	adrp	x26, _MB_CMD_STS_INTRMDT@GOTPAGE
Lloh18:
	ldr	x26, [x26, _MB_CMD_STS_INTRMDT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x27]
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ql_wait_mbx_cmd_cmplt
	cbnz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ql_mpi_handler
	cbnz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	and	w8, w8, #0xf000
	ldr	w9, [x25]
	ldr	w10, [x26]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_4
; %bb.8:
Lloh19:
	adrp	x8, _CSR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CSR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _CSR_CMD_CLR_R2PCI_INT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CSR_CMD_CLR_R2PCI_INT@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ql_write32
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	and	w8, w8, #0xf000
	ldr	w9, [x25]
	ldr	w10, [x26]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_2
; %bb.9:
Lloh25:
	adrp	x8, _EIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh27:
	adrp	x8, _drv@GOTPAGE
Lloh28:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh30:
	adrp	x3, l_.str@PAGE
Lloh31:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh32:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_12:
	mov	x22, x0
LBB0_13:
	ldr	w1, [x23]
	ldr	w8, [x24]
	orr	w2, w8, w8, lsl #16
	mov	x0, x19
	bl	_ql_write32
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_INTR_MASK,4,2                  ; @INTR_MASK
	.comm	_INTR_MASK_PI,4,2               ; @INTR_MASK_PI
	.comm	_MB_CMD_MAKE_SYS_ERR,8,3        ; @MB_CMD_MAKE_SYS_ERR
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_MAILBOX_TIMEOUT,8,3            ; @MAILBOX_TIMEOUT
	.comm	_MB_CMD_STS_GOOD,4,2            ; @MB_CMD_STS_GOOD
	.comm	_MB_CMD_STS_INTRMDT,4,2         ; @MB_CMD_STS_INTRMDT
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timed out waiting for mailbox complete.\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_CSR,4,2                        ; @CSR
	.comm	_CSR_CMD_CLR_R2PCI_INT,4,2      ; @CSR_CMD_CLR_R2PCI_INT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ql_mailbox_command
.subsections_via_symbols
