	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_init_driver
_wpas_init_driver:                      ## @wpas_init_driver
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	movq	%rbx, %rsi
	callq	_wpa_supplicant_set_driver
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_15
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %esi
	movq	%r15, %rdi
	callq	_wpa_drv_init
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$44, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	(%r13), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpa_dbg
	incq	%rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wpa_supplicant_set_driver
	testq	%rax, %rax
	jns	LBB0_2
	jmp	LBB0_15
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_15
LBB0_7:
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpa_drv_set_param
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_wpa_drv_get_ifname
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %rbx
	movl	8(%r15), %esi
	movq	%rax, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r13), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_dbg
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_os_strlcpy
LBB0_12:
	movq	%r15, %rdi
	callq	_wpa_driver_get_radio_name
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	cmpb	$0, (%rax)
	cmovneq	%rax, %rsi
LBB0_14:
	movq	%r15, %rdi
	callq	_radio_add_interface
	movq	%rax, (%r15)
	cmpq	$1, %rax
	sbbl	%r14d, %r14d
	jmp	LBB0_15
LBB0_8:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_wpa_msg
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize driver interface - try next driver wrapper"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize driver interface"

L_.str.2:                               ## @.str.2
	.asciz	"Driver interface rejected driver_param '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"Driver interface replaced interface name with '%s'"

	.no_dead_strip	_wpas_init_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_init_driver
_wpas_init_driver:                      ; @wpas_init_driver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x21, [x1]
	mov	x1, x21
	bl	_wpa_supplicant_set_driver
	tbnz	x0, #63, LBB0_6
; %bb.1:
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_wpa_drv_init
	str	x0, [x19, #24]
	cbnz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x21, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	w1, #44
	bl	_os_strchr
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_wpa_dbg
	add	x21, x21, #1
	mov	x0, x19
	mov	x1, x21
	bl	_wpa_supplicant_set_driver
	tbz	x0, #63, LBB0_2
LBB0_6:
	mov	w0, #-1
	b	LBB0_18
LBB0_7:
Lloh4:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_wpa_msg
	mov	w0, #-1
	b	LBB0_18
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_drv_set_param
	tbnz	x0, #63, LBB0_15
; %bb.10:
	mov	x0, x19
	bl	_wpa_drv_get_ifname
	cbz	x0, LBB0_13
; %bb.11:
	mov	x20, x0
	ldr	w1, [x19, #8]
	bl	_os_strcmp
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w1, [x22]
	str	x20, [sp]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wpa_dbg
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #4
	bl	_os_strlcpy
LBB0_13:
	mov	x0, x19
	bl	_wpa_driver_get_radio_name
	cbz	x0, LBB0_16
; %bb.14:
	ldrb	w8, [x0]
	cmp	w8, #0
	csel	x1, xzr, x0, eq
	b	LBB0_17
LBB0_15:
Lloh11:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_16:
	mov	x1, #0
LBB0_17:
	mov	x0, x19
	bl	_radio_add_interface
	str	x0, [x19]
	cmp	x0, #0
	csetm	w0, eq
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize driver interface - try next driver wrapper"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize driver interface"

l_.str.2:                               ; @.str.2
	.asciz	"Driver interface rejected driver_param '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"Driver interface replaced interface name with '%s'"

	.no_dead_strip	_wpas_init_driver
.subsections_via_symbols
