	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_mgd_wext_connect      ## -- Begin function cfg80211_mgd_wext_connect
	.p2align	4, 0x90
_cfg80211_mgd_wext_connect:             ## @cfg80211_mgd_wext_connect
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_ASSERT_RDEV_LOCK
	movq	%rbx, %rdi
	callq	_ASSERT_WDEV_LOCK
	movl	64(%rbx), %edi
	callq	_netif_running
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movq	40(%rbx), %rdi
	movq	52(%rbx), %rax
	movq	%rax, 16(%rbx)
	movl	$-1, 4(%rbx)
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	movl	(%rbx), %eax
	movl	%eax, (%rdi)
	movl	48(%rbx), %ecx
	movl	%ecx, 4(%rdi)
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movl	$1, 8(%rbx)
LBB0_4:
	cmpl	$0, 12(%rbx)
	je	LBB0_14
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movl	(%rax), %edx
	movl	%edx, (%rcx)
	movl	4(%rax), %edx
	movl	%edx, 4(%rcx)
	movl	8(%rax), %edx
	movl	%edx, 8(%rcx)
	movl	12(%rax), %edx
	movl	%edx, 12(%rcx)
	movl	16(%rax), %edx
	movl	%edx, 16(%rcx)
	movl	20(%rax), %eax
	movl	%eax, 20(%rcx)
	jmp	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
	cmpl	$0, 12(%rbx)
	je	LBB0_14
## %bb.8:
	xorl	%r12d, %r12d
LBB0_9:
	leaq	4(%rbx), %rdx
	xorl	%r15d, %r15d
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.11:
	movq	24(%rbx), %r8
	jmp	LBB0_12
LBB0_10:
	xorl	%r8d, %r8d
LBB0_12:
	movl	64(%rbx), %esi
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	___cfg80211_connect
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	movl	%ebx, %r15d
	jmp	LBB0_14
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_14:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_mgd_wext_connect      ; -- Begin function cfg80211_mgd_wext_connect
	.p2align	2
_cfg80211_mgd_wext_connect:             ; @cfg80211_mgd_wext_connect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	bl	_ASSERT_RDEV_LOCK
	mov	x0, x20
	bl	_ASSERT_WDEV_LOCK
	ldr	w0, [x20, #64]
	bl	_netif_running
	cbz	w0, LBB0_13
; %bb.1:
	mov	w8, #-1
	mov	x21, x20
	str	w8, [x21, #4]!
	ldr	d0, [x21, #48]
	stur	d0, [x21, #12]
	ldur	x0, [x21, #36]
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w8, [x20]
	ldr	w9, [x20, #48]
	stp	w8, w9, [x0]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_4:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_13
; %bb.5:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_kmemdup
	cbz	x0, LBB0_15
; %bb.6:
	mov	x22, x0
	ldp	x8, x9, [x0]
	ldr	w10, [x8]
	str	w10, [x9]
	ldr	w10, [x8, #4]
	str	w10, [x9, #4]
	ldr	w10, [x8, #8]
	str	w10, [x9, #8]
	ldr	w10, [x8, #12]
	str	w10, [x9, #12]
	ldr	w10, [x8, #16]
	str	w10, [x9, #16]
	ldr	w8, [x8, #20]
	str	w8, [x9, #20]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_10
LBB0_7:
	ldr	x4, [x20, #24]
	b	LBB0_11
LBB0_8:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_13
; %bb.9:
	mov	x22, #0
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_7
LBB0_10:
	mov	x4, #0
LBB0_11:
	ldr	w1, [x20, #64]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	___cfg80211_connect
	mov	x19, x0
	cbz	w0, LBB0_14
; %bb.12:
	mov	x0, x22
	bl	_kfree
	b	LBB0_14
LBB0_13:
	mov	w19, #0
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
