	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_carl9170_read_mreg             ## -- Begin function carl9170_read_mreg
	.p2align	4, 0x90
_carl9170_read_mreg:                    ## @carl9170_read_mreg
	.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	%rcx, %r13
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_3
## %bb.1:
	movq	%rdx, %r15
	movl	%r12d, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,4), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13,%r14,4)
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_2
LBB0_3:
	movq	_CARL9170_CMD_RREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(,%r12,4), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rcx
	movl	%edx, %r8d
	movq	%r13, %r9
	callq	_carl9170_exec_cmd
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_wiphy_err
	jmp	LBB0_10
LBB0_4:
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.8:
	movl	%r12d, %r14d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_9
	jmp	LBB0_10
LBB0_5:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARL9170_CMD_RREG,4,2          ## @CARL9170_CMD_RREG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading regs failed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_carl9170_read_mreg             ; -- Begin function carl9170_read_mreg
	.p2align	2
_carl9170_read_mreg:                    ; @carl9170_read_mreg
	.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	x19, x3
	mov	x21, x1
	mov	x20, x0
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x2
	mov	w23, w21
	mov	x24, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22], #4
	bl	_cpu_to_le32
	str	w0, [x24], #4
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_3:
Lloh0:
	adrp	x8, _CARL9170_CMD_RREG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARL9170_CMD_RREG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	lsl	w2, w21, #2
	mov	x0, x20
	mov	x3, x19
	mov	x4, x2
	mov	x5, x19
	bl	_carl9170_exec_cmd
	cbz	w0, LBB0_6
; %bb.4:
	mov	x22, x0
	bl	_net_ratelimit
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_wiphy_err
	b	LBB0_10
LBB0_6:
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w20, w21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_le32_to_cpu
	str	w0, [x19], #4
	subs	x20, x20, #1
	b.ne	LBB0_8
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CARL9170_CMD_RREG,4,2          ; @CARL9170_CMD_RREG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading regs failed (%d)\n"

.subsections_via_symbols
