	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlan_attach_newif
_wlan_attach_newif:                     ## @wlan_attach_newif
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	_IFT_ETHER@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_wlan_check_media
	movq	_IFM_IEEE80211@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	4(%rbx), %edi
	callq	_wlan_new_wif
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_wlan_get_opmode
	movl	(%rbx), %eax
	movl	%eax, 4(%r15)
	movq	_RowStatus_active@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_wlan_update_interface
	jmp	LBB0_5
LBB0_3:
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFT_ETHER,8,3                  ## @IFT_ETHER
	.comm	_IFM_IEEE80211,8,3              ## @IFM_IEEE80211
	.comm	_RowStatus_active,4,2           ## @RowStatus_active
	.no_dead_strip	_wlan_attach_newif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlan_attach_newif
_wlan_attach_newif:                     ; @wlan_attach_newif
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IFT_ETHER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFT_ETHER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_wlan_check_media
Lloh3:
	adrp	x8, _IFM_IEEE80211@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFM_IEEE80211@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
	bl	_wlan_new_wif
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	bl	_wlan_get_opmode
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _RowStatus_active@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RowStatus_active@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	mov	x0, x20
	bl	_wlan_update_interface
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #-1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IFT_ETHER,8,3                  ; @IFT_ETHER
	.comm	_IFM_IEEE80211,8,3              ; @IFM_IEEE80211
	.comm	_RowStatus_active,4,2           ; @RowStatus_active
	.no_dead_strip	_wlan_attach_newif
.subsections_via_symbols
