	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gas_server_handle_rx_comeback_req
_gas_server_handle_rx_comeback_req:     ## @gas_server_handle_rx_comeback_req
	.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	%rdi, %r15
	movq	40(%rdi), %r13
	movq	16(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	20(%rdi), %edi
	cmpl	$56161, (%r15)                  ## imm = 0xDB61
	movl	$928, %eax                      ## imm = 0x3A0
	movl	$1400, %ebx                     ## imm = 0x578
	cmovgeq	%rax, %rbx
	movslq	(%r13), %r12
	leaq	37(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_wpabuf_len
	movq	%rax, %r14
	subq	8(%r15), %r14
	leaq	(%r14,%r12), %rax
	addq	$37, %rax
	movq	%rbx, %r12
	subq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	cmpq	%rbx, %rax
	movq	%r13, %rbx
	cmovbeq	%r14, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_wpa_printf
	movl	28(%r15), %edx
	movl	32(%r15), %edi
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	1(%rdx), %eax
	movl	%eax, 28(%r15)
	xorl	%ecx, %ecx
	cmpq	%r14, %r12
	setb	%cl
	movslq	(%r13), %r9
	addq	%r12, %r9
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%r8d, %r8d
	callq	_gas_build_comeback_resp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_WLAN_EID_ADV_PROTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wpabuf_put_u8
	movl	(%rbx), %esi
	incl	%esi
	movq	%r13, %rdi
	callq	_wpabuf_put_u8
	movq	%r13, %rdi
	movl	$127, %esi
	callq	_wpabuf_put_u8
	movq	8(%rbx), %rsi
	movslq	(%rbx), %rdx
	movq	%r13, %rdi
	callq	_wpabuf_put_data
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_wpabuf_put_le16
	movl	20(%r15), %edi
	callq	_wpabuf_head_u8
	addq	8(%r15), %rax
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_wpabuf_put_data
	addq	%r12, 8(%r15)
	cmpq	%r14, %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	16(%r15), %edx
	movl	$2000, %eax                     ## imm = 0x7D0
	movl	$0, %r8d
	cmovbl	%eax, %r8d
	movq	%r13, %rcx
	callq	*8(%rbx)
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpabuf_free                    ## TAILCALL
LBB0_1:
	leaq	24(%r15), %rdi
	callq	_dl_list_del
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gas_server_free_response       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GAS: Sending out %u/%u remaining Query Response octets"

	.comm	_WLAN_STATUS_SUCCESS,4,2        ## @WLAN_STATUS_SUCCESS
	.comm	_WLAN_EID_ADV_PROTO,4,2         ## @WLAN_EID_ADV_PROTO
	.no_dead_strip	_gas_server_handle_rx_comeback_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gas_server_handle_rx_comeback_req
_gas_server_handle_rx_comeback_req:     ; @gas_server_handle_rx_comeback_req
	.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, x0
	ldr	x24, [x0, #40]
	ldr	x23, [x24, #16]
	ldr	w8, [x0]
	mov	w9, #56160
	cmp	w8, w9
	mov	w8, #1400
	mov	w9, #928
	csel	x21, x9, x8, gt
	ldrsw	x8, [x24]
	add	x22, x8, #37
	ldr	w0, [x0, #20]
	bl	_wpabuf_len
	ldr	x8, [x19, #8]
	sub	x20, x0, x8
	add	x8, x20, x22
	sub	x9, x21, x22
	cmp	x8, x21
	csel	x21, x9, x20, hi
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_wpa_printf
Lloh5:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldp	w2, w0, [x19, #28]
	add	w8, w2, #1
	str	w8, [x19, #28]
	cmp	x21, x20
	cset	w3, lo
	ldrsw	x8, [x24]
	add	x5, x21, x8
	mov	w4, #0
	bl	_gas_build_comeback_resp
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh8:
	adrp	x8, _WLAN_EID_ADV_PROTO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_EID_ADV_PROTO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_wpabuf_put_u8
	ldr	w8, [x24]
	add	w1, w8, #1
	mov	x0, x22
	bl	_wpabuf_put_u8
	mov	x0, x22
	mov	w1, #127
	bl	_wpabuf_put_u8
	ldr	x1, [x24, #8]
	ldrsw	x2, [x24]
	mov	x0, x22
	bl	_wpabuf_put_data
	mov	x0, x22
	mov	x1, x21
	bl	_wpabuf_put_le16
	ldr	w0, [x19, #20]
	bl	_wpabuf_head_u8
	ldr	x8, [x19, #8]
	add	x1, x8, x0
	mov	x0, x22
	mov	x2, x21
	bl	_wpabuf_put_data
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	str	x8, [x19, #8]
	ldr	x8, [x23, #8]
	ldr	w0, [x23]
	ldr	w1, [x19]
	ldr	w2, [x19, #16]
	cmp	x21, x20
	mov	w9, #2000
	csel	w4, w9, wzr, lo
	mov	x3, x22
	blr	x8
	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
	b	_wpabuf_free
LBB0_2:
	add	x0, x19, #24
	bl	_dl_list_del
	mov	x0, x19
	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	_gas_server_free_response
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GAS: Sending out %u/%u remaining Query Response octets"

	.comm	_WLAN_STATUS_SUCCESS,4,2        ; @WLAN_STATUS_SUCCESS
	.comm	_WLAN_EID_ADV_PROTO,4,2         ; @WLAN_EID_ADV_PROTO
	.no_dead_strip	_gas_server_handle_rx_comeback_req
.subsections_via_symbols
