	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_hs20_indication    ## -- Begin function hostapd_eid_hs20_indication
	.p2align	4, 0x90
_hostapd_eid_hs20_indication:           ## @hostapd_eid_hs20_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	cmpl	$0, 16(%rax)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	xorl	%ecx, %ecx
	cmpl	$2, (%rax)
	setge	%cl
	leal	5(%rcx,%rcx), %eax
	leaq	8(%rbx), %rdi
	movl	%eax, 4(%rbx)
	movq	_OUI_WFA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WPA_PUT_BE24
	movq	_HS20_INDICATION_OUI_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	%edi, %ecx
	shll	$4, %ecx
	addl	$-16, %ecx
	xorl	%edx, %edx
	movl	$0, %esi
	cmpl	$2, %edi
	jl	LBB0_3
## %bb.2:
	movq	_HS20_ANQP_DOMAIN_ID_PRESENT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_3:
	orl	%esi, %ecx
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	movq	_HS20_DGAF_DISABLED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_5:
	orl	%edx, %ecx
	leaq	28(%rbx), %rdi
	movl	%ecx, 24(%rbx)
	cmpl	$2, (%rax)
	jl	LBB0_6
## %bb.7:
	movl	4(%rax), %esi
	callq	_WPA_PUT_LE16
	addq	$36, %rbx
	jmp	LBB0_8
LBB0_6:
	movq	%rdi, %rbx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_ANQP_DOMAIN_ID_PRESENT,4,2 ## @HS20_ANQP_DOMAIN_ID_PRESENT
	.comm	_HS20_DGAF_DISABLED,4,2         ## @HS20_DGAF_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_hs20_indication    ; -- Begin function hostapd_eid_hs20_indication
	.p2align	2
_hostapd_eid_hs20_indication:           ; @hostapd_eid_hs20_indication
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x19]
	ldr	w8, [x8]
	mov	w9, #7
	mov	w10, #5
	cmp	w8, #2
	csel	w8, w10, w9, lt
	add	x0, x19, #8
	str	w8, [x19, #4]
Lloh3:
	adrp	x8, _OUI_WFA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OUI_WFA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_WPA_PUT_BE24
Lloh6:
	adrp	x8, _HS20_INDICATION_OUI_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HS20_INDICATION_OUI_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	x8, [x20]
	ldr	w9, [x8]
	lsl	w10, w9, #4
	sub	w10, w10, #16
Lloh9:
	adrp	x11, _HS20_ANQP_DOMAIN_ID_PRESENT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _HS20_ANQP_DOMAIN_ID_PRESENT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	w9, #1
	csel	w9, w11, wzr, gt
	orr	w9, w10, w9
	ldr	x10, [x8, #8]
Lloh12:
	adrp	x11, _HS20_DGAF_DISABLED@GOTPAGE
Lloh13:
	ldr	x11, [x11, _HS20_DGAF_DISABLED@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	cmp	x10, #0
	csel	w10, wzr, w11, eq
	orr	w9, w9, w10
	add	x0, x19, #28
	str	w9, [x19, #24]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_3
; %bb.2:
	ldr	w1, [x8, #4]
	bl	_WPA_PUT_LE16
	add	x19, x19, #36
	b	LBB0_4
LBB0_3:
	mov	x19, x0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_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_ANQP_DOMAIN_ID_PRESENT,4,2 ; @HS20_ANQP_DOMAIN_ID_PRESENT
	.comm	_HS20_DGAF_DISABLED,4,2         ; @HS20_DGAF_DISABLED
.subsections_via_symbols
