	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_own_capab_info         ## -- Begin function hostapd_own_capab_info
	.p2align	4, 0x90
_hostapd_own_capab_info:                ## @hostapd_own_capab_info
	.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	%rdi, %rbx
	movq	_WLAN_CAPABILITY_ESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	16(%rdi), %rdi
	callq	_hostapd_is_dfs_required
	movl	%eax, %r8d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r8d, %edx
	callq	_wpa_printf
	xorl	%r8d, %r8d
LBB0_2:
	movq	16(%rbx), %rsi
	cmpq	$0, (%rsi)
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_SHORT_PREAMBLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_WLAN_CAPABILITY_SHORT_PREAMBLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_5:
	movq	(%rbx), %rcx
	movl	48(%rcx), %eax
	cmpq	$0, 40(%rcx)
	je	LBB0_9
## %bb.6:
	cmpq	$0, 32(%rcx)
	jne	LBB0_8
## %bb.7:
	cmpq	$0, 24(%rcx)
	je	LBB0_9
LBB0_8:
	movl	$1, %eax
LBB0_9:
	testl	%eax, %eax
	movq	_WLAN_CAPABILITY_PRIVACY@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmovnel	%edi, %eax
	cmpq	$0, 16(%rcx)
	cmovnel	%edi, %eax
	orl	%r14d, %eax
	movq	16(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.10:
	movq	(%rdi), %rdi
	movq	_HOSTAPD_MODE_IEEE80211G@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rdi
	jne	LBB0_13
## %bb.11:
	cmpq	$0, 8(%rsi)
	jne	LBB0_13
## %bb.12:
	movq	_WLAN_CAPABILITY_SHORT_SLOT_TIME@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
LBB0_13:
	movq	_HOSTAPD_MODE_IEEE80211A@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rdi
	jne	LBB0_17
## %bb.14:
	movq	8(%rbx), %rdx
	cmpq	$0, 8(%rdx)
	jne	LBB0_16
## %bb.15:
	testl	%r8d, %r8d
	je	LBB0_17
LBB0_16:
	movq	_WLAN_CAPABILITY_SPECTRUM_MGMT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
LBB0_17:
	movq	_RRM_CAPABILITIES_IE_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, %edx
	jle	LBB0_22
## %bb.18:
	movq	(%rcx), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rsi,8)
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_20
	jmp	LBB0_22
LBB0_21:
	movq	_IEEE80211_CAP_RRM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_22:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_CAPABILITY_ESS,4,2        ## @WLAN_CAPABILITY_ESS
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to check if DFS is required; ret=%d"

	.comm	_SHORT_PREAMBLE,8,3             ## @SHORT_PREAMBLE
	.comm	_WLAN_CAPABILITY_SHORT_PREAMBLE,4,2 ## @WLAN_CAPABILITY_SHORT_PREAMBLE
	.comm	_WLAN_CAPABILITY_PRIVACY,4,2    ## @WLAN_CAPABILITY_PRIVACY
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ## @HOSTAPD_MODE_IEEE80211G
	.comm	_WLAN_CAPABILITY_SHORT_SLOT_TIME,4,2 ## @WLAN_CAPABILITY_SHORT_SLOT_TIME
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ## @HOSTAPD_MODE_IEEE80211A
	.comm	_WLAN_CAPABILITY_SPECTRUM_MGMT,4,2 ## @WLAN_CAPABILITY_SPECTRUM_MGMT
	.comm	_RRM_CAPABILITIES_IE_LEN,4,2    ## @RRM_CAPABILITIES_IE_LEN
	.comm	_IEEE80211_CAP_RRM,4,2          ## @IEEE80211_CAP_RRM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_own_capab_info         ; -- Begin function hostapd_own_capab_info
	.p2align	2
_hostapd_own_capab_info:                ; @hostapd_own_capab_info
	.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, x0
Lloh0:
	adrp	x8, _WLAN_CAPABILITY_ESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_CAPABILITY_ESS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x0, [x0, #16]
	bl	_hostapd_is_dfs_required
	mov	x2, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w2, #0
LBB0_2:
	ldr	x9, [x19, #16]
	ldr	x8, [x9]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh8:
	adrp	x10, _SHORT_PREAMBLE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SHORT_PREAMBLE@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _WLAN_CAPABILITY_SHORT_PREAMBLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WLAN_CAPABILITY_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_5:
	ldr	x8, [x19]
	ldr	w10, [x8, #48]
	ldr	x11, [x8, #40]
	cbz	x11, LBB0_9
; %bb.6:
	ldr	x11, [x8, #32]
	cbnz	x11, LBB0_8
; %bb.7:
	ldr	x11, [x8, #24]
	cbz	x11, LBB0_9
LBB0_8:
	mov	w10, #1
LBB0_9:
	ldr	x11, [x8, #16]
	cmp	w10, #0
	ccmp	x11, #0, #0, eq
Lloh14:
	adrp	x10, _WLAN_CAPABILITY_PRIVACY@GOTPAGE
Lloh15:
	ldr	x10, [x10, _WLAN_CAPABILITY_PRIVACY@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	csel	w10, wzr, w10, eq
	orr	w0, w10, w20
	ldr	x10, [x9, #16]
	cbz	x10, LBB0_17
; %bb.10:
	ldr	x10, [x10]
Lloh17:
	adrp	x11, _HOSTAPD_MODE_IEEE80211G@GOTPAGE
Lloh18:
	ldr	x11, [x11, _HOSTAPD_MODE_IEEE80211G@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_13
; %bb.11:
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_13
; %bb.12:
Lloh20:
	adrp	x9, _WLAN_CAPABILITY_SHORT_SLOT_TIME@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WLAN_CAPABILITY_SHORT_SLOT_TIME@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w9, w0
LBB0_13:
Lloh23:
	adrp	x9, _HOSTAPD_MODE_IEEE80211A@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HOSTAPD_MODE_IEEE80211A@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_17
; %bb.14:
	ldr	x9, [x19, #8]
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_16
; %bb.15:
	cbz	w2, LBB0_17
LBB0_16:
Lloh26:
	adrp	x9, _WLAN_CAPABILITY_SPECTRUM_MGMT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WLAN_CAPABILITY_SPECTRUM_MGMT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w0, w9, w0
LBB0_17:
Lloh29:
	adrp	x9, _RRM_CAPABILITIES_IE_LEN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RRM_CAPABILITIES_IE_LEN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.18:
	ldr	x8, [x8]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cbnz	x10, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_19
	b	LBB0_22
LBB0_21:
Lloh32:
	adrp	x8, _IEEE80211_CAP_RRM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IEEE80211_CAP_RRM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_22:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_CAPABILITY_ESS,4,2        ; @WLAN_CAPABILITY_ESS
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to check if DFS is required; ret=%d"

	.comm	_SHORT_PREAMBLE,8,3             ; @SHORT_PREAMBLE
	.comm	_WLAN_CAPABILITY_SHORT_PREAMBLE,4,2 ; @WLAN_CAPABILITY_SHORT_PREAMBLE
	.comm	_WLAN_CAPABILITY_PRIVACY,4,2    ; @WLAN_CAPABILITY_PRIVACY
	.comm	_HOSTAPD_MODE_IEEE80211G,8,3    ; @HOSTAPD_MODE_IEEE80211G
	.comm	_WLAN_CAPABILITY_SHORT_SLOT_TIME,4,2 ; @WLAN_CAPABILITY_SHORT_SLOT_TIME
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ; @HOSTAPD_MODE_IEEE80211A
	.comm	_WLAN_CAPABILITY_SPECTRUM_MGMT,4,2 ; @WLAN_CAPABILITY_SPECTRUM_MGMT
	.comm	_RRM_CAPABILITIES_IE_LEN,4,2    ; @RRM_CAPABILITIES_IE_LEN
	.comm	_IEEE80211_CAP_RRM,4,2          ; @IEEE80211_CAP_RRM
.subsections_via_symbols
