	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gas_anqp_set_len               ## -- Begin function gas_anqp_set_len
	.p2align	4, 0x90
_gas_anqp_set_len:                      ## @gas_anqp_set_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	callq	_wpabuf_len
	cmpq	$2, %rax
	jb	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_wpabuf_head_u8
	movl	4(%rax), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.3:
	cltq
	leaq	l_switch.table.gas_anqp_set_len(%rip), %rcx
	movq	(%rcx,%rax,8), %r14
	movq	%rbx, %rdi
	callq	_wpabuf_len
	leaq	2(%r14), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_wpabuf_mhead_u8
	leaq	(%rax,%r14,4), %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	subq	%r14, %rax
	shrq	$2, %rax
	leal	-2(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WPA_PUT_LE16                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	3                               ## @switch.table.gas_anqp_set_len
l_switch.table.gas_anqp_set_len:
	.quad	11                              ## 0xb
	.quad	7                               ## 0x7
	.quad	12                              ## 0xc

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gas_anqp_set_len               ; -- Begin function gas_anqp_set_len
	.p2align	2
_gas_anqp_set_len:                      ; @gas_anqp_set_len
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_wpabuf_len
	cmp	x0, #2
	b.lo	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_wpabuf_head_u8
	ldr	w8, [x0, #4]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, l_switch.table.gas_anqp_set_len@PAGE
Lloh1:
	add	x9, x9, l_switch.table.gas_anqp_set_len@PAGEOFF
	ldr	x20, [x9, w8, sxtw #3]
	mov	x0, x19
	bl	_wpabuf_len
	add	x8, x20, #2
	cmp	x0, x8
	b.hs	LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	bl	_wpabuf_mhead_u8
	add	x20, x0, x20, lsl #2
	mov	x0, x19
	mov	w1, #0
	bl	_wpabuf_put
	sub	x8, x0, x20
	lsr	x8, x8, #2
	sub	w1, w8, #2
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WPA_PUT_LE16
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @switch.table.gas_anqp_set_len
l_switch.table.gas_anqp_set_len:
	.quad	11                              ; 0xb
	.quad	7                               ; 0x7
	.quad	12                              ; 0xc

.subsections_via_symbols
