	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_get_hw_features        ## -- Begin function hostapd_get_hw_features
	.p2align	4, 0x90
_hostapd_get_hw_features:               ## @hostapd_get_hw_features
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_hostapd_drv_none
	movl	$-1, %r12d
	testq	%rax, %rax
	jne	LBB0_23
## %bb.1:
	leaq	-44(%rbp), %rsi
	leaq	-68(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_hostapd_get_hw_feature_data
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	-68(%rbp), %ecx
	movl	%ecx, (%r14)
	movl	-64(%rbp), %ecx
	movl	%ecx, 24(%r14)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rdi
	movl	4(%r14), %esi
	callq	_hostapd_free_hw_features
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, 16(%r14)
	movl	-44(%rbp), %ecx
	movl	%ecx, 4(%r14)
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.4:
	xorl	%edi, %edi
	movq	_HOSTAPD_CHAN_RADAR@GOTPCREL(%rip), %r9
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %r10
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %ecx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rdi                ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdi
	movslq	%ecx, %rax
	cmpq	%rax, %rdi
	jge	LBB0_22
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_WPA_DRIVER_FLAGS_RADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	setne	%r11b
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r11d, %r11d
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rdi,%rdi,2), %rdx
	movl	(%rsi,%rdx,8), %r8d
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	leaq	(%rsi,%rdx,8), %r15
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movl	%r11d, -60(%rbp)                ## 4-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, (%rsp)
	movl	%esi, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %r8d
	callq	_wpa_printf
	movl	(%r15), %r8d
	movq	_HOSTAPD_CHAN_RADAR@GOTPCREL(%rip), %r9
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %r10
	movl	-60(%rbp), %r11d                ## 4-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%r14
	movslq	%r8d, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_20
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rdi
	movl	(%rdi,%rbx), %edx
	movl	(%r9), %esi
	testl	%edx, %esi
	setne	%r12b
	andb	%r11b, %r12b
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	testl	%edx, %esi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	_WPA_DRIVER_FLAGS_DFS_OFFLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testl	%esi, 8(%rax)
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	_HOSTAPD_CHAN_NO_IR@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	orl	(%r10), %edx
	movl	%edx, (%rdi,%rbx)
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	testl	%edx, (%r10)
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	movl	12(%rdi,%rbx), %ecx
	movl	4(%rdi,%rbx), %r9d
	movl	8(%rdi,%rbx), %r13d
	leaq	L_.str.2(%rip), %rax
	testb	%r12b, %r12b
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	addq	%rbx, %rdi
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	callq	_dfs_info
	movl	%r12d, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	jmp	LBB0_18
LBB0_22:
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_2:
	movq	_HOSTAPD_MODULE_IEEE80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HOSTAPD_LEVEL_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hostapd_logger
LBB0_23:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_MODULE_IEEE80211,4,2   ## @HOSTAPD_MODULE_IEEE80211
	.comm	_HOSTAPD_LEVEL_DEBUG,4,2        ## @HOSTAPD_LEVEL_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fetching hardware channel/rate support not supported."

	.comm	_WPA_DRIVER_FLAGS_RADAR,4,2     ## @WPA_DRIVER_FLAGS_RADAR
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ## @HOSTAPD_CHAN_RADAR
	.comm	_WPA_DRIVER_FLAGS_DFS_OFFLOAD,4,2 ## @WPA_DRIVER_FLAGS_DFS_OFFLOAD
	.comm	_HOSTAPD_CHAN_NO_IR,4,2         ## @HOSTAPD_CHAN_NO_IR
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"Allowed channel: mode=%d chan=%d freq=%d MHz max_tx_power=%d dBm%s"

L_.str.2:                               ## @.str.2
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_get_hw_features        ; -- Begin function hostapd_get_hw_features
	.p2align	2
_hostapd_get_hw_features:               ; @hostapd_get_hw_features
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x8, [x0, #32]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_hostapd_drv_none
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_23
LBB0_2:
	add	x1, sp, #76
	add	x2, sp, #72
	add	x3, sp, #68
	mov	x0, x19
	bl	_hostapd_get_hw_feature_data
	cbz	x0, LBB0_24
; %bb.3:
	mov	x9, x0
	ldr	w8, [sp, #72]
	str	w8, [x20]
	ldr	w8, [sp, #68]
	str	w8, [x20, #24]
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #4]
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	bl	_hostapd_free_hw_features
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	str	x11, [x20, #16]
	ldr	w9, [sp, #76]
	str	w9, [x20, #4]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.4:
	mov	x12, #0
Lloh0:
	adrp	x21, _HOSTAPD_CHAN_RADAR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HOSTAPD_CHAN_RADAR@GOTPAGEOFF]
Lloh2:
	adrp	x22, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [sp, #76]
	ldp	x19, x11, [sp, #8]              ; 16-byte Folded Reload
	ldp	x12, x20, [sp, #24]             ; 16-byte Folded Reload
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x12, x12, #1
	cmp	x12, w9, sxtw
	b.ge	LBB0_22
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #8]
Lloh4:
	adrp	x10, _WPA_DRIVER_FLAGS_RADAR@GOTPAGE
Lloh5:
	ldr	x10, [x10, _WPA_DRIVER_FLAGS_RADAR@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w16, ne
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w16, #0
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #24
	madd	x8, x12, x8, x11
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x28, #0
	mov	x19, #0
	str	x12, [sp, #24]                  ; 8-byte Folded Spill
	mov	w9, #24
	madd	x9, x12, x9, x11
	add	x17, x9, #8
	add	x9, x9, #16
	stp	x9, x17, [sp, #40]              ; 16-byte Folded Spill
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x25
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	mov	x4, x27
	mov	x5, x26
	bl	_wpa_printf
	ldp	x17, x8, [sp, #48]              ; 16-byte Folded Reload
	ldr	w8, [x8]
	mov	x16, x20
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x19, x19, #1
	add	x28, x28, #16
	cmp	x19, w8, sxtw
	b.ge	LBB0_5
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x17]
	ldr	w11, [x10, x28]
	ldr	w9, [x21]
	ands	w12, w9, w11
	cset	w9, ne
	and	w9, w9, w16
	tbnz	w9, #0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	cbz	w12, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x12, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w12, [x12, #8]
Lloh9:
	adrp	x13, _WPA_DRIVER_FLAGS_DFS_OFFLOAD@GOTPAGE
Lloh10:
	ldr	x13, [x13, _WPA_DRIVER_FLAGS_DFS_OFFLOAD@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	tst	w13, w12
	b.eq	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=2
Lloh12:
	adrp	x12, _HOSTAPD_CHAN_NO_IR@GOTPAGE
Lloh13:
	ldr	x12, [x12, _HOSTAPD_CHAN_NO_IR@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w12, [x22]
	orr	w11, w12, w11
	str	w11, [x10, x28]
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w12, [x22]
	tst	w12, w11
	b.ne	LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x20, x16
	add	x0, x10, x28
Lloh15:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh17:
	ldr	w25, [x8]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w23, [x8]
	ldp	w27, w24, [x0, #8]
Lloh18:
	adrp	x6, l_.str.2@PAGE
Lloh19:
	add	x6, x6, l_.str.2@PAGEOFF
	ldr	w26, [x0, #4]
	cbz	w9, LBB0_12
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=2
	bl	_dfs_info
	mov	x6, x0
	b	LBB0_12
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_24:
Lloh20:
	adrp	x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x4, l_.str@PAGE
Lloh27:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	bl	_hostapd_logger
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_MODULE_IEEE80211,4,2   ; @HOSTAPD_MODULE_IEEE80211
	.comm	_HOSTAPD_LEVEL_DEBUG,4,2        ; @HOSTAPD_LEVEL_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fetching hardware channel/rate support not supported."

	.comm	_WPA_DRIVER_FLAGS_RADAR,4,2     ; @WPA_DRIVER_FLAGS_RADAR
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ; @HOSTAPD_CHAN_RADAR
	.comm	_WPA_DRIVER_FLAGS_DFS_OFFLOAD,4,2 ; @WPA_DRIVER_FLAGS_DFS_OFFLOAD
	.comm	_HOSTAPD_CHAN_NO_IR,4,2         ; @HOSTAPD_CHAN_NO_IR
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ; @HOSTAPD_CHAN_DISABLED
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"Allowed channel: mode=%d chan=%d freq=%d MHz max_tx_power=%d dBm%s"

l_.str.2:                               ; @.str.2
	.space	1

.subsections_via_symbols
