	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_driver_init
_hostapd_driver_init:                   ## @hostapd_driver_init
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$0, 24(%rax)
	je	LBB0_6
## %bb.2:
	movq	%rdi, %r14
	movq	24(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movdqu	(%rax), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %ecx
	orl	16(%rax), %ecx
	xorl	%r15d, %r15d
	orl	20(%rax), %ecx
	cmovneq	%rax, %r15
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_os_memset
	movq	_wpa_drivers@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.3:
	movq	8(%rbx), %rax
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %rdx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rcx,%r12), %rdx
	addq	$8, %r12
	testq	%rdx, %rdx
	jne	LBB0_4
	jmp	LBB0_11
LBB0_6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_7:
	movl	$-1, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_global@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_26
LBB0_10:
	movq	%rcx, -56(%rbp)
LBB0_11:
	movq	%r15, -96(%rbp)
	movq	24(%rbx), %rax
	movl	28(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movq	40(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movl	24(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	movq	%rdi, -88(%rbp)
	movl	$8, %esi
	callq	_os_calloc
	movq	%rax, -80(%rbp)
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:
	movq	32(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.13:
	xorl	%ecx, %ecx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rcx
	cmpq	(%rax), %rcx
	jae	LBB0_17
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rdx
	movq	(%rdx,%rcx,8), %rdx
	movq	24(%rdx), %rdx
	movq	16(%rdx), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-80(%rbp), %rax
	movq	%rdx, (%rax,%rcx,8)
	movq	32(%rbx), %rax
	jmp	LBB0_14
LBB0_17:
	movl	16(%rbx), %eax
	movl	%eax, -72(%rbp)
	movq	8(%rbx), %rax
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*24(%rax)
	movq	%rax, (%rbx)
	movq	-80(%rbp), %rdi
	callq	_os_free
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.18:
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	xorl	%r15d, %r15d
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.19:
	leaq	-128(%rbp), %rsi
	callq	*%rcx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.20:
	movl	-104(%rbp), %eax
	movl	%eax, 24(%r14)
	movl	-108(%rbp), %eax
	movl	%eax, 20(%r14)
	movl	-112(%rbp), %eax
	movl	%eax, 16(%r14)
	movdqa	-128(%rbp), %xmm0
	movdqu	%xmm0, (%r14)
	movq	%r14, %rdi
	callq	_hostapd_get_ext_capa
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	-128(%rbp), %rsi
	callq	_wpa_get_wowlan_triggers
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_24:
	movq	%r14, %rdi
	callq	_os_free
	jmp	LBB0_8
LBB0_25:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	16(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	$0, 8(%rbx)
	jmp	LBB0_8
LBB0_26:
	movq	32(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.27:
	movl	28(%r14), %edi
	callq	*%rcx
	movq	_global@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	%rax, (%rcx,%r12)
	movq	(%rdx), %rax
	movq	(%rax,%r12), %rcx
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.28:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movq	(%rax,%r12), %rax
	movl	16(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_29:
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No hostapd driver wrapper available"

	.comm	_wpa_drivers,8,3                ## @wpa_drivers
	.comm	_global,8,3                     ## @global
L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize driver '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"%s driver initialization failed."

L_.str.3:                               ## @.str.3
	.asciz	"set_wowlan failed"

	.no_dead_strip	_hostapd_driver_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_driver_init
_hostapd_driver_init:                   ; @hostapd_driver_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	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
	ldr	x8, [x0, #32]
	ldr	x19, [x8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x21, [x19, #24]
	ldr	x8, [x21]
	ldr	q0, [x8]
	ldp	w9, w10, [x8, #16]
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w11, v0[1]
	fmov	w12, s0
	orr	w11, w12, w11
	orr	w9, w11, w9
	orr	w9, w9, w10
	cmp	w9, #0
	csel	x22, xzr, x8, eq
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #48
	bl	_os_memset
Lloh0:
	adrp	x23, _wpa_drivers@GOTPAGE
Lloh1:
	ldr	x23, [x23, _wpa_drivers@GOTPAGEOFF]
	ldr	x10, [x23]
	ldr	x9, [x10]
	cbz	x9, LBB0_12
; %bb.3:
	mov	x24, #0
	ldr	x8, [x19, #8]
	add	x10, x10, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x8
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x10, x24]
	add	x24, x24, #8
	cbnz	x9, LBB0_4
	b	LBB0_12
LBB0_6:
Lloh2:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	bl	_wpa_printf
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
	add	sp, sp, #176
	ret
LBB0_10:
Lloh7:
	adrp	x25, _global@GOTPAGE
Lloh8:
	ldr	x25, [x25, _global@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	x9, [x9, x24]
	cbz	x9, LBB0_28
LBB0_11:
	str	x9, [sp, #88]
LBB0_12:
	str	x22, [sp, #48]
	ldr	x8, [x19, #24]
	ldr	w9, [x8, #28]
	str	w9, [sp, #84]
	ldr	x9, [x19, #40]
	ldr	w9, [x9]
	str	w9, [sp, #80]
	ldr	w8, [x8, #24]
	str	w8, [sp, #76]
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
	str	x0, [sp, #56]
	mov	w1, #8
	bl	_os_calloc
	str	x0, [sp, #64]
	cbz	x0, LBB0_8
; %bb.13:
	ldr	x8, [x19, #32]
	ldr	x9, [x8]
	cbz	x9, LBB0_18
; %bb.14:
	mov	x9, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x9, x9, #1
	ldr	x10, [x8]
	cmp	x9, x10
	b.hs	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, #8]
	ldr	x10, [x10, x9, lsl #3]
	ldr	x10, [x10, #24]
	ldr	x10, [x10, #16]
	ldr	x11, [x10]
	cbz	x11, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [sp, #64]
	str	x10, [x8, x9, lsl #3]
	ldr	x8, [x19, #32]
	b	LBB0_15
LBB0_18:
	ldr	w8, [x19, #16]
	str	w8, [sp, #72]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #24]
	add	x1, sp, #48
	mov	x0, x19
	blr	x8
	str	x0, [x19]
	ldr	x0, [sp, #64]
	bl	_os_free
	ldr	x0, [x19]
	cbz	x0, LBB0_27
; %bb.19:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_26
; %bb.20:
	add	x1, sp, #16
	blr	x8
	cbnz	x0, LBB0_26
; %bb.21:
	ldr	w8, [sp, #40]
	str	w8, [x20, #24]
	ldr	d0, [sp, #32]
	str	d0, [x20, #16]
	ldr	q0, [sp, #16]
	str	q0, [x20]
	mov	x0, x20
	bl	_hostapd_get_ext_capa
	ldr	w0, [x21, #8]
	add	x1, sp, #16
	bl	_wpa_get_wowlan_triggers
	mov	x20, x0
	cbz	x0, LBB0_25
; %bb.22:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_25
; %bb.23:
	ldr	x0, [x19]
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_25
; %bb.24:
Lloh9:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
LBB0_25:
	mov	x0, x20
	bl	_os_free
LBB0_26:
	mov	w0, #0
	b	LBB0_9
LBB0_27:
Lloh14:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #16]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	str	xzr, [x19, #8]
	b	LBB0_8
LBB0_28:
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_31
; %bb.29:
	ldr	w0, [x20, #28]
	blr	x8
	ldr	x8, [x25]
	str	x0, [x8, x24]
	ldr	x8, [x25]
	ldr	x9, [x8, x24]
	cbnz	x9, LBB0_11
; %bb.30:
Lloh19:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x8, [x23]
	ldr	x8, [x8, x24]
	ldr	w8, [x8, #16]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_31:
	mov	x9, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No hostapd driver wrapper available"

	.comm	_wpa_drivers,8,3                ; @wpa_drivers
	.comm	_global,8,3                     ; @global
l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize driver '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"%s driver initialization failed."

l_.str.3:                               ; @.str.3
	.asciz	"set_wowlan failed"

	.no_dead_strip	_hostapd_driver_init
.subsections_via_symbols
