	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlan_new_wif
_wlan_new_wif:                          ## @wlan_new_wif
	.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, %r14
	xorl	%eax, %eax
	callq	_wlan_first_interface
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_wlan_next_interface
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	12(%rbx), %edi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_strlcpy
	movq	_RowStatus_notReady@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_wlanIfaceState_down@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_WlanIfaceOperatingModeType_station@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_wlan_add_wif
	testq	%rax, %rax
	jns	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_free
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	$0, 16(%rbx)
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_RowStatus_notReady,4,2         ## @RowStatus_notReady
	.comm	_wlanIfaceState_down,4,2        ## @wlanIfaceState_down
	.comm	_WlanIfaceOperatingModeType_station,4,2 ## @WlanIfaceOperatingModeType_station
	.no_dead_strip	_wlan_new_wif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlan_new_wif
_wlan_new_wif:                          ; @wlan_new_wif
	.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	x20, x0
	bl	_wlan_first_interface
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_wlan_next_interface
	mov	x19, x0
	cbnz	x0, LBB0_2
LBB0_4:
	mov	w0, #24
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_strlcpy
Lloh3:
	adrp	x8, _RowStatus_notReady@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RowStatus_notReady@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, _wlanIfaceState_down@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wlanIfaceState_down@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _WlanIfaceOperatingModeType_station@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WlanIfaceOperatingModeType_station@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x19
	bl	_wlan_add_wif
	tbz	x0, #63, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_8
LBB0_7:
	str	xzr, [x19, #16]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_RowStatus_notReady,4,2         ; @RowStatus_notReady
	.comm	_wlanIfaceState_down,4,2        ; @wlanIfaceState_down
	.comm	_WlanIfaceOperatingModeType_station,4,2 ; @WlanIfaceOperatingModeType_station
	.no_dead_strip	_wlan_new_wif
.subsections_via_symbols
