	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5523_read_reply
_ar5523_read_reply:                     ## @ar5523_read_reply
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	4(%rsi), %edi
	callq	_be32_to_cpu
	movl	%eax, %ebx
	addl	$-8, %ebx
	js	LBB0_1
## %bb.2:
	movl	(%r12), %edi
	callq	_be32_to_cpu
	movzbl	%al, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_ar5523_dbg
	addq	$8, %r12
	xorl	%ecx, %ecx
	cmpl	$4, %ebx
	jb	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	callq	_be32_to_cpu
	testl	%eax, %eax
	movl	$4, %ecx
	cmovnel	%eax, %ecx
LBB0_4:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	movl	(%r14), %edx
	cmpl	%ecx, %edx
	jge	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_ar5523_err
	movl	$0, (%r14)
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 8(%r14)
	jmp	LBB0_8
LBB0_1:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_8
LBB0_7:
	movl	%ecx, (%r14)
	addq	$4, %r12
	movq	%r12, %rsi
	movl	%ecx, %edx
	callq	_memcpy
	movl	$0, 8(%r14)
LBB0_8:
	addq	$4, %r14
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Code = %d len = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"olen to small %d < %d\n"

	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.no_dead_strip	_ar5523_read_reply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar5523_read_reply
_ar5523_read_reply:                     ; @ar5523_read_reply
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x1, #4]
	bl	_be32_to_cpu
	subs	w22, w0, #8
	b.mi	LBB0_3
; %bb.1:
	ldr	w0, [x21], #8
	bl	_be32_to_cpu
	and	w2, w0, #0xff
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_ar5523_dbg
	cmp	w22, #4
	b.lo	LBB0_4
; %bb.2:
	ldr	w0, [x21]
	bl	_be32_to_cpu
	mov	w8, #4
	cmp	w0, #0
	csel	w3, w8, w0, eq
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_5
	b	LBB0_8
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_8
LBB0_4:
	mov	w3, #0
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_8
LBB0_5:
	ldr	w2, [x19]
	cmp	w2, w3
	b.ge	LBB0_7
; %bb.6:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ar5523_err
	str	wzr, [x19]
Lloh4:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_7:
	str	w3, [x19]
	add	x1, x21, #4
	mov	x2, x3
	bl	_memcpy
	str	wzr, [x19, #8]
LBB0_8:
	add	x0, x19, #4
	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	_complete
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Code = %d len = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"olen to small %d < %d\n"

	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.no_dead_strip	_ar5523_read_reply
.subsections_via_symbols
