	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_read_radio_regs
_iwl_read_radio_regs:                   ## @iwl_read_radio_regs
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rsi), %rax
	movq	16(%rax), %r15
	leaq	L_.str(%rip), %rsi
	callq	_IWL_DEBUG_INFO
	movl	(%r13), %edi
	leaq	-56(%rbp), %rsi
	callq	_iwl_trans_grab_nic_access
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_IWL_FW_ERROR_DUMP_RADIO_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_RADIO_REG_MAX_READ@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_cpu_to_le32
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_RSP_RADIO_RDDAT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RADIO_RSP_ADDR_POS@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	%ebx, %edx
	shll	%cl, %edx
	movq	_RADIO_RSP_RD_CMD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%r13), %edi
	movq	_RSP_RADIO_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	_iwl_write_prph_no_grab
	movl	(%r13), %edi
	movl	(%r12), %esi
	callq	_iwl_read_prph_no_grab
	movq	%rax, (%r15,%rbx,8)
	incq	%rbx
	cmpl	(%r14), %ebx
	jl	LBB0_3
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_iwl_fw_error_next_data
	movq	%rax, (%rbx)
	movl	(%r13), %edi
	leaq	-56(%rbp), %rsi
	callq	_iwl_trans_release_nic_access
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRT radio registers dump\n"

	.comm	_IWL_FW_ERROR_DUMP_RADIO_REG,4,2 ## @IWL_FW_ERROR_DUMP_RADIO_REG
	.comm	_RADIO_REG_MAX_READ,4,2         ## @RADIO_REG_MAX_READ
	.comm	_RADIO_RSP_RD_CMD,4,2           ## @RADIO_RSP_RD_CMD
	.comm	_RADIO_RSP_ADDR_POS,4,2         ## @RADIO_RSP_ADDR_POS
	.comm	_RSP_RADIO_CMD,4,2              ## @RSP_RADIO_CMD
	.comm	_RSP_RADIO_RDDAT,4,2            ## @RSP_RADIO_RDDAT
	.no_dead_strip	_iwl_read_radio_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_read_radio_regs
_iwl_read_radio_regs:                   ; @iwl_read_radio_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	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
	.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
	ldr	x8, [x1]
	ldr	x21, [x8, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_INFO
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_iwl_trans_grab_nic_access
	cbz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _IWL_FW_ERROR_DUMP_RADIO_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWL_FW_ERROR_DUMP_RADIO_REG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #8]
Lloh5:
	adrp	x22, _RADIO_REG_MAX_READ@GOTPAGE
Lloh6:
	ldr	x22, [x22, _RADIO_REG_MAX_READ@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
Lloh7:
	adrp	x24, _RADIO_RSP_RD_CMD@GOTPAGE
Lloh8:
	ldr	x24, [x24, _RADIO_RSP_RD_CMD@GOTPAGEOFF]
Lloh9:
	adrp	x25, _RADIO_RSP_ADDR_POS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _RADIO_RSP_ADDR_POS@GOTPAGEOFF]
Lloh11:
	adrp	x26, _RSP_RADIO_CMD@GOTPAGE
Lloh12:
	ldr	x26, [x26, _RSP_RADIO_CMD@GOTPAGEOFF]
Lloh13:
	adrp	x27, _RSP_RADIO_RDDAT@GOTPAGE
Lloh14:
	ldr	x27, [x27, _RSP_RADIO_RDDAT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	lsl	w9, w23, w9
	orr	w2, w9, w8
	ldr	w0, [x19]
	ldr	w1, [x26]
	bl	_iwl_write_prph_no_grab
	ldr	w0, [x19]
	ldr	w1, [x27]
	bl	_iwl_read_prph_no_grab
	str	x0, [x21, x23, lsl #3]
	ldr	w8, [x22]
	add	x23, x23, #1
	cmp	w23, w8
	b.lt	LBB0_3
LBB0_4:
	ldr	x0, [x20]
	bl	_iwl_fw_error_next_data
	str	x0, [x20]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_iwl_trans_release_nic_access
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRT radio registers dump\n"

	.comm	_IWL_FW_ERROR_DUMP_RADIO_REG,4,2 ; @IWL_FW_ERROR_DUMP_RADIO_REG
	.comm	_RADIO_REG_MAX_READ,4,2         ; @RADIO_REG_MAX_READ
	.comm	_RADIO_RSP_RD_CMD,4,2           ; @RADIO_RSP_RD_CMD
	.comm	_RADIO_RSP_ADDR_POS,4,2         ; @RADIO_RSP_ADDR_POS
	.comm	_RSP_RADIO_CMD,4,2              ; @RSP_RADIO_CMD
	.comm	_RSP_RADIO_RDDAT,4,2            ; @RSP_RADIO_RDDAT
	.no_dead_strip	_iwl_read_radio_regs
.subsections_via_symbols
