	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_ap_update_beacon ## -- Begin function wpa_supplicant_ap_update_beacon
	.p2align	4, 0x90
_wpa_supplicant_ap_update_beacon:       ## @wpa_supplicant_ap_update_beacon
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:
	movq	(%rcx), %rcx
	movq	_WPAS_MODE_INFRA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.3:
	movq	_WPAS_MODE_IBSS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.4:
	movq	(%rdi), %rcx
	movq	(%rcx), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	callq	_ieee802_11_set_beacons
	movq	%rbx, %rdi
	callq	_hostapd_set_ap_wps_ie
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPAS_MODE_INFRA,8,3            ## @WPAS_MODE_INFRA
	.comm	_WPAS_MODE_IBSS,8,3             ## @WPAS_MODE_IBSS
	.comm	_P2P_ENABLED,8,3                ## @P2P_ENABLED
	.comm	_P2P_GROUP_FORMATION,8,3        ## @P2P_GROUP_FORMATION
	.comm	_P2P_GROUP_OWNER,8,3            ## @P2P_GROUP_OWNER
	.comm	_WPAS_MODE_P2P_GO,8,3           ## @WPAS_MODE_P2P_GO
	.comm	_WPAS_MODE_P2P_GROUP_FORMATION,8,3 ## @WPAS_MODE_P2P_GROUP_FORMATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_ap_update_beacon ; -- Begin function wpa_supplicant_ap_update_beacon
	.p2align	2
_wpa_supplicant_ap_update_beacon:       ; @wpa_supplicant_ap_update_beacon
	.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	x8, x0
	ldr	x0, [x0]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _WPAS_MODE_INFRA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPAS_MODE_INFRA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _WPAS_MODE_IBSS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WPAS_MODE_IBSS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_ieee802_11_set_beacons
	mov	x0, x19
	bl	_hostapd_set_ap_wps_ie
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WPAS_MODE_INFRA,8,3            ; @WPAS_MODE_INFRA
	.comm	_WPAS_MODE_IBSS,8,3             ; @WPAS_MODE_IBSS
	.comm	_P2P_ENABLED,8,3                ; @P2P_ENABLED
	.comm	_P2P_GROUP_FORMATION,8,3        ; @P2P_GROUP_FORMATION
	.comm	_P2P_GROUP_OWNER,8,3            ; @P2P_GROUP_OWNER
	.comm	_WPAS_MODE_P2P_GO,8,3           ; @WPAS_MODE_P2P_GO
	.comm	_WPAS_MODE_P2P_GROUP_FORMATION,8,3 ; @WPAS_MODE_P2P_GROUP_FORMATION
.subsections_via_symbols
