	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_put_start_scan_tlvs
_ath10k_wmi_put_start_scan_tlvs:        ## @ath10k_wmi_put_start_scan_tlvs
	.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	%rsi, %r15
	movq	(%rdi), %r14
	cmpl	$0, (%rsi)
	je	LBB0_5
## %bb.1:
	movq	_WMI_CHAN_LIST_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r14)
	movl	(%r15), %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r14)
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	___cpu_to_le16
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	cltq
	leaq	(%r14,%rax,4), %r14
	addq	$24, %r14
LBB0_5:
	cmpl	$0, 4(%r15)
	je	LBB0_10
## %bb.6:
	movq	_WMI_SSID_LIST_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r14)
	movl	4(%r15), %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r14)
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%rbx,8), %edi
	callq	___cpu_to_le32
	movq	(%r14), %rdi
	movq	%rax, 8(%rdi,%r12)
	addq	%r12, %rdi
	movq	32(%r15), %rax
	movl	(%rax,%rbx,8), %edx
	movl	4(%rax,%rbx,8), %esi
	callq	_memcpy
	incq	%rbx
	movslq	4(%r15), %rax
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	cltq
	leaq	(%r14,%rax,4), %r14
	addq	$24, %r14
LBB0_10:
	cmpl	$0, 8(%r15)
	je	LBB0_15
## %bb.11:
	movq	_WMI_BSSID_LIST_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r14)
	movl	8(%r15), %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r14)
	movl	8(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_ether_addr_copy
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	cltq
	leaq	(%r14,%rax,4), %r14
	addq	$24, %r14
LBB0_15:
	cmpl	$0, 12(%r15)
	je	LBB0_16
## %bb.17:
	movq	_WMI_IE_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r14)
	movl	12(%r15), %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r14)
	movq	(%r14), %rdi
	movl	12(%r15), %edx
	movl	16(%r15), %esi
	callq	_memcpy
	movl	12(%r15), %edi
	movl	$4, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_roundup                        ## TAILCALL
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_CHAN_LIST_TAG,4,2          ## @WMI_CHAN_LIST_TAG
	.comm	_WMI_SSID_LIST_TAG,4,2          ## @WMI_SSID_LIST_TAG
	.comm	_WMI_BSSID_LIST_TAG,4,2         ## @WMI_BSSID_LIST_TAG
	.comm	_WMI_IE_TAG,4,2                 ## @WMI_IE_TAG
	.no_dead_strip	_ath10k_wmi_put_start_scan_tlvs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_put_start_scan_tlvs
_ath10k_wmi_put_start_scan_tlvs:        ; @ath10k_wmi_put_start_scan_tlvs
	.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, x1
	ldr	x20, [x0]
	ldr	w8, [x1]
	cbz	w8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _WMI_CHAN_LIST_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_CHAN_LIST_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___cpu_to_le32
	str	x0, [x20, #16]
	ldr	w0, [x19]
	bl	___cpu_to_le32
	str	x0, [x20, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	lsl	x22, x21, #2
	ldr	w0, [x8, x22]
	bl	___cpu_to_le16
	ldr	x8, [x20]
	str	w0, [x8, x22]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_4:
	add	x8, x20, w8, sxtw #2
	add	x20, x8, #24
LBB0_5:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_10
; %bb.6:
Lloh3:
	adrp	x8, _WMI_SSID_LIST_TAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_SSID_LIST_TAG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	___cpu_to_le32
	str	x0, [x20, #16]
	ldr	w0, [x19, #4]
	bl	___cpu_to_le32
	str	x0, [x20, #8]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
	mov	x22, #0
	mov	w23, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x21]
	bl	___cpu_to_le32
	ldr	x8, [x20]
	add	x8, x8, x23
	str	x0, [x8], #-8
	ldr	x9, [x19, #32]
	add	x9, x9, x21
	ldp	w2, w1, [x9]
	mov	x0, x8
	bl	_memcpy
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	add	x21, x21, #8
	add	x23, x23, #16
	cmp	x22, x8
	b.lt	LBB0_8
LBB0_9:
	add	x8, x20, w8, sxtw #2
	add	x20, x8, #24
LBB0_10:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_15
; %bb.11:
Lloh6:
	adrp	x8, _WMI_BSSID_LIST_TAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_BSSID_LIST_TAG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	___cpu_to_le32
	str	x0, [x20, #16]
	ldr	w0, [x19, #8]
	bl	___cpu_to_le32
	str	x0, [x20, #8]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x21, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	lsl	x9, x21, #2
	ldr	w0, [x8, x9]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, x9]
	bl	_ether_addr_copy
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	cmp	x21, x8
	b.lt	LBB0_13
LBB0_14:
	add	x8, x20, w8, sxtw #2
	add	x20, x8, #24
LBB0_15:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_17
; %bb.16:
Lloh9:
	adrp	x8, _WMI_IE_TAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMI_IE_TAG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	___cpu_to_le32
	str	x0, [x20, #16]
	ldr	w0, [x19, #12]
	bl	___cpu_to_le32
	str	x0, [x20, #8]
	ldr	x0, [x20]
	ldp	w2, w1, [x19, #12]
	bl	_memcpy
	ldr	w0, [x19, #12]
	mov	w1, #4
	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
	b	_roundup
LBB0_17:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_CHAN_LIST_TAG,4,2          ; @WMI_CHAN_LIST_TAG
	.comm	_WMI_SSID_LIST_TAG,4,2          ; @WMI_SSID_LIST_TAG
	.comm	_WMI_BSSID_LIST_TAG,4,2         ; @WMI_BSSID_LIST_TAG
	.comm	_WMI_IE_TAG,4,2                 ; @WMI_IE_TAG
	.no_dead_strip	_ath10k_wmi_put_start_scan_tlvs
.subsections_via_symbols
