	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee802_11_build_ap_params     ## -- Begin function ieee802_11_build_ap_params
	.p2align	4, 0x90
_ieee802_11_build_ap_params:            ## @ieee802_11_build_ap_params
	.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, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_os_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	movups	%xmm0, 168(%rbx)
	movq	$0, 184(%rbx)
	movq	16(%r14), %rcx
	movl	148(%rcx), %eax
	movl	%eax, 160(%rbx)
	movq	24(%r14), %r8
	movq	32(%r8), %rdx
	movq	%rdx, 152(%rbx)
	movq	8(%r14), %rdx
	movl	40(%rdx), %edx
	movl	%edx, 144(%rbx)
	movl	28(%r8), %edx
	movl	%edx, 140(%rbx)
	movl	24(%r8), %edx
	movl	%edx, 136(%rbx)
	movl	128(%rcx), %edx
	movl	%edx, 132(%rbx)
	movl	112(%rcx), %edx
	movl	%edx, 24(%rbx)
	movl	4(%rcx), %r9d
	movq	_WPA_PROTO_WPA@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	_WPA_PROTO_RSN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	movl	%eax, %edi
	orl	%esi, %edi
	movl	%r9d, %edx
	notl	%edx
	testl	%edx, %edi
	jne	LBB0_2
## %bb.1:
	movl	16(%rcx), %esi
	orl	12(%rcx), %esi
	jmp	LBB0_6
LBB0_2:
	testl	%r9d, %eax
	je	LBB0_4
## %bb.3:
	movl	16(%rcx), %esi
	jmp	LBB0_6
LBB0_4:
	testl	%r9d, %esi
	je	LBB0_7
## %bb.5:
	movl	12(%rcx), %esi
LBB0_6:
	movl	%esi, 28(%rbx)
LBB0_7:
	movl	144(%rcx), %eax
	movl	%eax, 128(%rbx)
	movl	140(%rcx), %eax
	movl	%eax, 124(%rbx)
	movl	136(%rcx), %eax
	movl	%eax, 120(%rbx)
	movl	%r9d, 32(%rbx)
	cmpq	$0, 120(%rcx)
	movl	$1, %esi
	jne	LBB0_13
## %bb.8:
	testl	%r9d, %r9d
	jne	LBB0_13
## %bb.9:
	cmpq	$0, 104(%rcx)
	je	LBB0_10
## %bb.11:
	cmpq	$0, 96(%rcx)
	jne	LBB0_13
## %bb.12:
	xorl	%esi, %esi
	cmpq	$0, 88(%rcx)
	setne	%sil
	jmp	LBB0_13
LBB0_10:
	xorl	%esi, %esi
LBB0_13:
	movl	%esi, 36(%rbx)
	movslq	(%rcx), %rdx
	cmpq	$2, %rdx
	ja	LBB0_15
## %bb.14:
	leaq	l_switch.table.ieee802_11_build_ap_params(%rip), %rax
	movq	(%rax,%rdx,8), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%rbx)
LBB0_15:
	movl	80(%rcx), %eax
	movl	%eax, 112(%rbx)
	movq	_HT_CAP_INFO_SMPS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r8), %eax
	movl	%eax, 40(%rbx)
	movq	64(%rcx), %rax
	movq	%rax, 104(%rbx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movl	60(%rcx), %edi
	callq	_is_zero_ether_addr
	movq	16(%r14), %rcx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movl	60(%rcx), %eax
	movl	%eax, 100(%rbx)
LBB0_18:
	movl	56(%rcx), %eax
	movl	%eax, 96(%rbx)
	movl	52(%rcx), %eax
	movl	%eax, 92(%rbx)
	movl	36(%rcx), %eax
	movl	%eax, 80(%rbx)
	movl	32(%rcx), %eax
	movl	%eax, 76(%rbx)
	cmpq	$0, 24(%rcx)
	je	LBB0_22
## %bb.19:
	movq	8(%r14), %rax
	movq	_WPA_DRIVER_FLAGS_FTM_RESPONDER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 20(%rax)
	je	LBB0_21
## %bb.20:
	movl	$1, 64(%rbx)
	movq	24(%rax), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 72(%rbx)
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	jmp	LBB0_22
LBB0_21:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_22:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_PROTO_WPA,4,2              ## @WPA_PROTO_WPA
	.comm	_WPA_PROTO_RSN,4,2              ## @WPA_PROTO_RSN
	.comm	_NO_SSID_HIDING,4,2             ## @NO_SSID_HIDING
	.comm	_HIDDEN_SSID_ZERO_LEN,4,2       ## @HIDDEN_SSID_ZERO_LEN
	.comm	_HIDDEN_SSID_ZERO_CONTENTS,4,2  ## @HIDDEN_SSID_ZERO_CONTENTS
	.comm	_HT_CAP_INFO_SMPS_MASK,4,2      ## @HT_CAP_INFO_SMPS_MASK
	.comm	_WPA_DRIVER_FLAGS_FTM_RESPONDER,4,2 ## @WPA_DRIVER_FLAGS_FTM_RESPONDER
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not configuring FTM responder as the driver doesn't advertise support for it"

	.comm	_BEACON_HEAD_BUF_SIZE,4,2       ## @BEACON_HEAD_BUF_SIZE
	.comm	_BEACON_TAIL_BUF_SIZE,8,3       ## @BEACON_TAIL_BUF_SIZE
	.comm	_ERP_INFO_USE_PROTECTION,4,2    ## @ERP_INFO_USE_PROTECTION
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ## @HOSTAPD_MODE_IEEE80211G
	.comm	_IEEE80211_MODE_AP,4,2          ## @IEEE80211_MODE_AP
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.comm	_P2P_ENABLED,4,2                ## @P2P_ENABLED
	.comm	_P2P_GROUP_OWNER,4,2            ## @P2P_GROUP_OWNER
	.comm	_P2P_MANAGE,4,2                 ## @P2P_MANAGE
	.comm	_SHORT_PREAMBLE,8,3             ## @SHORT_PREAMBLE
	.comm	_WLAN_EID_SSID,4,2              ## @WLAN_EID_SSID
	.comm	_WLAN_FC_STYPE_BEACON,4,2       ## @WLAN_FC_STYPE_BEACON
	.comm	_WLAN_FC_TYPE_MGMT,4,2          ## @WLAN_FC_TYPE_MGMT
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ieee802_11_build_ap_params
l_switch.table.ieee802_11_build_ap_params:
	.quad	_NO_SSID_HIDING
	.quad	_HIDDEN_SSID_ZERO_LEN
	.quad	_HIDDEN_SSID_ZERO_CONTENTS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee802_11_build_ap_params     ; -- Begin function ieee802_11_build_ap_params
	.p2align	2
_ieee802_11_build_ap_params:            ; @ieee802_11_build_ap_params
	.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
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #256
	bl	_os_memset
	stp	xzr, xzr, [x19, #8]
	str	xzr, [x19]
	stp	xzr, xzr, [x19, #176]
	str	xzr, [x19, #168]
	ldp	x10, x8, [x20, #8]
	ldr	w9, [x8, #148]
	str	w9, [x19, #160]
	ldr	x9, [x20, #24]
	ldr	x11, [x9, #32]
	str	x11, [x19, #152]
	ldr	w10, [x10, #40]
	str	w10, [x19, #144]
	ldr	d0, [x9, #24]
	str	d0, [x19, #136]
	ldr	w10, [x8, #128]
	str	w10, [x19, #132]
	ldr	w10, [x8, #112]
	str	w10, [x19, #24]
	ldr	w10, [x8, #4]
Lloh0:
	adrp	x11, _WPA_PROTO_WPA@GOTPAGE
Lloh1:
	ldr	x11, [x11, _WPA_PROTO_WPA@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
Lloh3:
	adrp	x12, _WPA_PROTO_RSN@GOTPAGE
Lloh4:
	ldr	x12, [x12, _WPA_PROTO_RSN@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	orr	w13, w12, w11
	bics	wzr, w13, w10
	b.ne	LBB0_2
; %bb.1:
	ldp	w11, w12, [x8, #12]
	orr	w11, w12, w11
	b	LBB0_6
LBB0_2:
	tst	w12, w10
	b.eq	LBB0_4
; %bb.3:
	ldr	w11, [x8, #16]
	b	LBB0_6
LBB0_4:
	tst	w11, w10
	b.eq	LBB0_7
; %bb.5:
	ldr	w11, [x8, #12]
LBB0_6:
	str	w11, [x19, #28]
LBB0_7:
	ldr	w11, [x8, #144]
	str	w11, [x19, #128]
	ldr	d0, [x8, #136]
	str	d0, [x19, #120]
	str	w10, [x19, #32]
	ldr	x12, [x8, #120]
	mov	w11, #1
	cbnz	x12, LBB0_14
; %bb.8:
	cbnz	w10, LBB0_14
; %bb.9:
	ldr	x10, [x8, #104]
	cbz	x10, LBB0_12
; %bb.10:
	ldr	x10, [x8, #96]
	cbz	x10, LBB0_13
; %bb.11:
	mov	w11, #1
	b	LBB0_14
LBB0_12:
	mov	w11, #0
	b	LBB0_14
LBB0_13:
	ldr	x10, [x8, #88]
	cmp	x10, #0
	cset	w11, ne
LBB0_14:
	str	w11, [x19, #36]
	ldrsw	x10, [x8]
	cmp	w10, #2
	b.hi	LBB0_16
; %bb.15:
Lloh6:
	adrp	x11, l_switch.table.ieee802_11_build_ap_params@PAGE
Lloh7:
	add	x11, x11, l_switch.table.ieee802_11_build_ap_params@PAGEOFF
	ldr	x10, [x11, x10, lsl #3]
	ldr	w10, [x10]
	str	w10, [x19, #116]
LBB0_16:
	ldr	w10, [x8, #80]
	str	w10, [x19, #112]
Lloh8:
	adrp	x10, _HT_CAP_INFO_SMPS_MASK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _HT_CAP_INFO_SMPS_MASK@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh10:
	ldr	w10, [x10]
	and	w9, w10, w9
	str	w9, [x19, #40]
	ldr	x9, [x8, #64]
	str	x9, [x19, #104]
	cbz	x9, LBB0_19
; %bb.17:
	ldr	w0, [x8, #60]
	bl	_is_zero_ether_addr
	ldr	x8, [x20, #16]
	cbnz	w0, LBB0_19
; %bb.18:
	ldr	w9, [x8, #60]
	str	w9, [x19, #100]
LBB0_19:
	ldur	d0, [x8, #52]
	stur	d0, [x19, #92]
	ldr	d0, [x8, #32]
	stur	d0, [x19, #76]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_23
; %bb.20:
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #20]
Lloh11:
	adrp	x10, _WPA_DRIVER_FLAGS_FTM_RESPONDER@GOTPAGE
Lloh12:
	ldr	x10, [x10, _WPA_DRIVER_FLAGS_FTM_RESPONDER@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_22
; %bb.21:
	mov	w9, #1
	str	w9, [x19, #64]
	ldr	x8, [x8, #24]
	ldr	d0, [x8]
	stur	d0, [x19, #68]
	b	LBB0_23
LBB0_22:
Lloh14:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_23:
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_PROTO_WPA,4,2              ; @WPA_PROTO_WPA
	.comm	_WPA_PROTO_RSN,4,2              ; @WPA_PROTO_RSN
	.comm	_NO_SSID_HIDING,4,2             ; @NO_SSID_HIDING
	.comm	_HIDDEN_SSID_ZERO_LEN,4,2       ; @HIDDEN_SSID_ZERO_LEN
	.comm	_HIDDEN_SSID_ZERO_CONTENTS,4,2  ; @HIDDEN_SSID_ZERO_CONTENTS
	.comm	_HT_CAP_INFO_SMPS_MASK,4,2      ; @HT_CAP_INFO_SMPS_MASK
	.comm	_WPA_DRIVER_FLAGS_FTM_RESPONDER,4,2 ; @WPA_DRIVER_FLAGS_FTM_RESPONDER
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not configuring FTM responder as the driver doesn't advertise support for it"

	.comm	_BEACON_HEAD_BUF_SIZE,4,2       ; @BEACON_HEAD_BUF_SIZE
	.comm	_BEACON_TAIL_BUF_SIZE,8,3       ; @BEACON_TAIL_BUF_SIZE
	.comm	_ERP_INFO_USE_PROTECTION,4,2    ; @ERP_INFO_USE_PROTECTION
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ; @HOSTAPD_MODE_IEEE80211G
	.comm	_IEEE80211_MODE_AP,4,2          ; @IEEE80211_MODE_AP
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.comm	_P2P_ENABLED,4,2                ; @P2P_ENABLED
	.comm	_P2P_GROUP_OWNER,4,2            ; @P2P_GROUP_OWNER
	.comm	_P2P_MANAGE,4,2                 ; @P2P_MANAGE
	.comm	_SHORT_PREAMBLE,8,3             ; @SHORT_PREAMBLE
	.comm	_WLAN_EID_SSID,4,2              ; @WLAN_EID_SSID
	.comm	_WLAN_FC_STYPE_BEACON,4,2       ; @WLAN_FC_STYPE_BEACON
	.comm	_WLAN_FC_TYPE_MGMT,4,2          ; @WLAN_FC_TYPE_MGMT
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ieee802_11_build_ap_params
l_switch.table.ieee802_11_build_ap_params:
	.quad	_NO_SSID_HIDING
	.quad	_HIDDEN_SSID_ZERO_LEN
	.quad	_HIDDEN_SSID_ZERO_CONTENTS

.subsections_via_symbols
