	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gas_server_send_resp
_gas_server_send_resp:                  ## @gas_server_send_resp
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	cmpl	$56161, %ecx                    ## imm = 0xDB61
	movl	$928, %eax                      ## imm = 0x3A0
	movl	$1400, %r13d                    ## imm = 0x578
	cmovgeq	%rax, %r13
	testq	%r9, %r9
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movslq	(%rsi), %r15
	movl	$48, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addq	$36, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	movq	%r14, 40(%r12)
	movl	36(%r12), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_wpabuf_len
	addq	%r15, %rax
	cmpq	%r13, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jbe	LBB0_4
## %bb.3:
	movl	$1, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpabuf_free                    ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	%rax, %rbx
	xorl	%edx, %edx
LBB0_5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	addl	%ebx, %ecx
	callq	_gas_build_initial_resp
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %r15
	movq	_WLAN_EID_ADV_PROTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_u8
	movl	(%r14), %esi
	incl	%esi
	movq	%r15, %rdi
	callq	_wpabuf_put_u8
	movq	%r15, %rdi
	movl	$127, %esi
	callq	_wpabuf_put_u8
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_data
	movq	%r15, %rdi
	movq	%rbx, %r14
	movq	%rbx, %rsi
	callq	_wpabuf_put_le16
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	jbe	LBB0_8
## %bb.7:
	movl	$2000, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x7D0
	leaq	L_.str.1(%rip), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_wpabuf_free
	movq	%r12, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gas_server_free_response       ## TAILCALL
LBB0_8:
	movq	%r15, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_wpabuf_put_buf
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, 8(%r12)
	movq	%r13, 24(%r12)
	leaq	16(%rbx), %rdi
	movq	%r12, %rsi
	addq	$16, %rsi
	callq	_dl_list_add
	movl	(%rbx), %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	*8(%rbx)
	movq	%r15, %rdi
	callq	_wpabuf_free
	movq	_GAS_QUERY_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_gas_server_response_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eloop_register_timeout         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: Allocated GAS response @%p"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WLAN_STATUS_SUCCESS,4,2        ## @WLAN_STATUS_SUCCESS
	.comm	_WLAN_EID_ADV_PROTO,4,2         ## @WLAN_EID_ADV_PROTO
L_.str.1:                               ## @.str.1
	.asciz	"GAS: Need to fragment query response"

L_.str.2:                               ## @.str.2
	.asciz	"GAS: Full query response fits in the GAS Initial Response frame"

	.comm	_GAS_QUERY_TIMEOUT,4,2          ## @GAS_QUERY_TIMEOUT
	.comm	_gas_server_response_timeout,4,2 ## @gas_server_response_timeout
	.no_dead_strip	_gas_server_send_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gas_server_send_resp
_gas_server_send_resp:                  ; @gas_server_send_resp
	.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	w8, #56160
	cmp	w3, w8
	mov	w8, #1400
	mov	w9, #928
	csel	x28, x9, x8, gt
	cbz	x5, LBB0_4
; %bb.1:
	mov	x23, x5
	mov	x26, x4
	mov	x21, x3
	mov	x20, x2
	mov	x24, x1
	mov	x22, x0
	ldrsw	x25, [x1]
	mov	w0, #48
	bl	_os_zalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	add	x25, x25, #36
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	str	w21, [x19]
	str	x24, [x19, #40]
	ldr	w0, [x19, #36]
Lloh5:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_os_memcpy
	str	w26, [x19, #32]
	mov	x0, x23
	bl	_wpabuf_len
	add	x27, x0, x25
	cmp	x27, x28
	b.ls	LBB0_6
; %bb.3:
	mov	x25, #0
	mov	w2, #1
	b	LBB0_7
LBB0_4:
	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
LBB0_5:
	mov	x0, x23
	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
	b	_wpabuf_free
LBB0_6:
	mov	x0, x23
	bl	_wpabuf_len
	mov	x25, x0
	mov	w2, #0
LBB0_7:
Lloh8:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x24]
	add	w3, w8, w25
	mov	x0, x26
	bl	_gas_build_initial_resp
	cbz	x0, LBB0_10
; %bb.8:
	mov	x26, x0
Lloh11:
	adrp	x8, _WLAN_EID_ADV_PROTO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WLAN_EID_ADV_PROTO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_wpabuf_put_u8
	ldr	w8, [x24]
	add	w1, w8, #1
	mov	x0, x26
	bl	_wpabuf_put_u8
	mov	x0, x26
	mov	w1, #127
	bl	_wpabuf_put_u8
	ldp	w2, w1, [x24]
	mov	x0, x26
	bl	_wpabuf_put_data
	mov	x0, x26
	mov	x1, x25
	bl	_wpabuf_put_le16
	cmp	x27, x28
	b.ls	LBB0_11
; %bb.9:
	mov	w24, #2000
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x0, x23
	bl	_wpabuf_free
	mov	x0, x19
	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
	b	_gas_server_free_response
LBB0_11:
	mov	x0, x26
	mov	x1, x23
	bl	_wpabuf_put_buf
	mov	w24, #0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
Lloh18:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_wpa_printf
	str	x25, [x19, #8]
	str	x23, [x19, #24]
	add	x0, x22, #16
	add	x1, x19, #16
	bl	_dl_list_add
	ldr	x8, [x22, #8]
	ldr	w0, [x22]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x26
	mov	x4, x24
	blr	x8
	mov	x0, x26
	bl	_wpabuf_free
Lloh21:
	adrp	x8, _GAS_QUERY_TIMEOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GAS_QUERY_TIMEOUT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _gas_server_response_timeout@GOTPAGE
Lloh25:
	ldr	x8, [x8, _gas_server_response_timeout@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	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
	b	_eloop_register_timeout
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: Allocated GAS response @%p"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WLAN_STATUS_SUCCESS,4,2        ; @WLAN_STATUS_SUCCESS
	.comm	_WLAN_EID_ADV_PROTO,4,2         ; @WLAN_EID_ADV_PROTO
l_.str.1:                               ; @.str.1
	.asciz	"GAS: Need to fragment query response"

l_.str.2:                               ; @.str.2
	.asciz	"GAS: Full query response fits in the GAS Initial Response frame"

	.comm	_GAS_QUERY_TIMEOUT,4,2          ; @GAS_QUERY_TIMEOUT
	.comm	_gas_server_response_timeout,4,2 ; @gas_server_response_timeout
	.no_dead_strip	_gas_server_send_resp
.subsections_via_symbols
