	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_hw_diag_segment_download
_ath10k_hw_diag_segment_download:       ## @ath10k_hw_diag_segment_download
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	movq	_DRAM_BASE_ADDRESS@GOTPCREL(%rip), %r8
	movq	_REGION_ACCESS_SIZE_LIMIT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	(%r8), %rsi
	cmpq	%rdx, %rsi
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %rsi
	movq	%rax, %rdx
	popq	%rbp
	jmp	_ath10k_hif_diag_write          ## TAILCALL
LBB0_1:
	movq	%rax, %rsi
	popq	%rbp
	jmp	_ath10k_hw_diag_segment_msb_download ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRAM_BASE_ADDRESS,8,3          ## @DRAM_BASE_ADDRESS
	.comm	_REGION_ACCESS_SIZE_LIMIT,8,3   ## @REGION_ACCESS_SIZE_LIMIT
	.no_dead_strip	_ath10k_hw_diag_segment_download
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_hw_diag_segment_download
_ath10k_hw_diag_segment_download:       ; @ath10k_hw_diag_segment_download
	.cfi_startproc
; %bb.0:
	mov	x8, x1
Lloh0:
	adrp	x9, _DRAM_BASE_ADDRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRAM_BASE_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _REGION_ACCESS_SIZE_LIMIT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _REGION_ACCESS_SIZE_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x9, x10, x9
	cmp	x9, x2
	b.le	LBB0_2
; %bb.1:
	mov	x1, x2
	mov	x2, x8
	b	_ath10k_hif_diag_write
LBB0_2:
	mov	x1, x8
	b	_ath10k_hw_diag_segment_msb_download
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRAM_BASE_ADDRESS,8,3          ; @DRAM_BASE_ADDRESS
	.comm	_REGION_ACCESS_SIZE_LIMIT,8,3   ; @REGION_ACCESS_SIZE_LIMIT
	.no_dead_strip	_ath10k_hw_diag_segment_download
.subsections_via_symbols
