	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_hs20_add_indication       ## -- Begin function wpas_hs20_add_indication
	.p2align	4, 0x90
_wpas_hs20_add_indication:              ## @wpas_hs20_add_indication
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_HS20_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$4, %eax
	leal	1(%rax), %ecx
	cmpl	%edx, %eax
	movl	%edx, %ebx
	cmovll	%ecx, %ebx
	testl	%edx, %edx
	cmovlel	%ecx, %ebx
	cmpl	$2, %ebx
	movl	$-1, %r15d
	cmovgel	%esi, %r15d
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wpabuf_put_u8
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setns	%al
	leal	(%rax,%rax), %esi
	addl	$5, %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movq	_OUI_WFA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be24
	movq	_HS20_INDICATION_OUI_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	xorl	%eax, %eax
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.1:
	movq	_HS20_PPS_MO_ID_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	shll	$4, %ebx
	addl	$-16, %ebx
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_wpabuf_put_u8
	testl	%r15d, %r15d
	js	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpabuf_put_le16                ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HS20_VERSION,4,2               ## @HS20_VERSION
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ## @WLAN_EID_VENDOR_SPECIFIC
	.comm	_OUI_WFA,4,2                    ## @OUI_WFA
	.comm	_HS20_INDICATION_OUI_TYPE,4,2   ## @HS20_INDICATION_OUI_TYPE
	.comm	_HS20_PPS_MO_ID_PRESENT,4,2     ## @HS20_PPS_MO_ID_PRESENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_hs20_add_indication       ; -- Begin function wpas_hs20_add_indication
	.p2align	2
_wpas_hs20_add_indication:              ; @wpas_hs20_add_indication
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _HS20_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HS20_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w8, #4
	cmp	w8, w2
	ccmp	w2, #1, #8, ge
	csinc	w21, w2, w8, ge
	cmp	w21, #2
	csinv	w20, w1, wzr, ge
Lloh3:
	adrp	x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_wpabuf_put_u8
	mov	w8, #5
	mov	w9, #7
	cmp	w20, #0
	csel	w1, w9, w8, ge
	mov	x0, x19
	bl	_wpabuf_put_u8
Lloh6:
	adrp	x8, _OUI_WFA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OUI_WFA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be24
Lloh9:
	adrp	x8, _HS20_INDICATION_OUI_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HS20_INDICATION_OUI_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_u8
	lsl	w8, w21, #4
	sub	w8, w8, #16
Lloh12:
	adrp	x9, _HS20_PPS_MO_ID_PRESENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HS20_PPS_MO_ID_PRESENT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	bic	w9, w9, w20, asr #31
	orr	w1, w9, w8
	mov	x0, x19
	bl	_wpabuf_put_u8
	tbnz	w20, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wpabuf_put_le16
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HS20_VERSION,4,2               ; @HS20_VERSION
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_OUI_WFA,4,2                    ; @OUI_WFA
	.comm	_HS20_INDICATION_OUI_TYPE,4,2   ; @HS20_INDICATION_OUI_TYPE
	.comm	_HS20_PPS_MO_ID_PRESENT,4,2     ; @HS20_PPS_MO_ID_PRESENT
.subsections_via_symbols
