	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5523_queue_init
_ar5523_queue_init:                     ## @ar5523_queue_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_ar5523_dbg
	xorl	%edi, %edi
	callq	_cpu_to_be32
	movq	%rax, -16(%rbp)
	movl	$56, %edi
	callq	_cpu_to_be32
	movq	%rax, -24(%rbp)
	xorl	%edi, %edi
	callq	_cpu_to_be32
	movq	%rax, -32(%rbp)
	movl	$3, %edi
	callq	_cpu_to_be32
	movq	%rax, -40(%rbp)
	movl	$4, %edi
	callq	_cpu_to_be32
	movq	%rax, -48(%rbp)
	movl	$10, %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	xorl	%edi, %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
	xorl	%edi, %edi
	callq	_cpu_to_be32
	movq	%rax, -72(%rbp)
	movl	$1, %edi
	callq	_cpu_to_be32
	movq	%rax, -80(%rbp)
	movq	_WDCMSG_SETUP_TX_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$72, %ecx
	xorl	%r8d, %r8d
	callq	_ar5523_cmd_write
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting up Tx queue\n"

	.comm	_WDCMSG_SETUP_TX_QUEUE,4,2      ## @WDCMSG_SETUP_TX_QUEUE
	.no_dead_strip	_ar5523_queue_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5523_queue_init
_ar5523_queue_init:                     ; @ar5523_queue_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ar5523_dbg
	mov	w0, #0
	bl	_cpu_to_be32
	str	x0, [sp, #72]
	mov	w0, #56
	bl	_cpu_to_be32
	str	x0, [sp, #64]
	mov	w0, #0
	bl	_cpu_to_be32
	str	x0, [sp, #56]
	mov	w0, #3
	bl	_cpu_to_be32
	str	x0, [sp, #48]
	mov	w0, #4
	bl	_cpu_to_be32
	str	x0, [sp, #40]
	mov	w0, #10
	bl	_cpu_to_be32
	str	x0, [sp, #32]
	mov	w0, #0
	bl	_cpu_to_be32
	str	x0, [sp, #24]
	mov	w0, #0
	bl	_cpu_to_be32
	str	x0, [sp, #16]
	mov	w0, #1
	bl	_cpu_to_be32
	str	x0, [sp, #8]
Lloh2:
	adrp	x8, _WDCMSG_SETUP_TX_QUEUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WDCMSG_SETUP_TX_QUEUE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #72
	mov	w4, #0
	bl	_ar5523_cmd_write
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting up Tx queue\n"

	.comm	_WDCMSG_SETUP_TX_QUEUE,4,2      ; @WDCMSG_SETUP_TX_QUEUE
	.no_dead_strip	_ar5523_queue_init
.subsections_via_symbols
