	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_ops_add_interface
_rtw_ops_add_interface:                 ## @rtw_ops_add_interface
	.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	%rsi, %r15
	movq	(%rdi), %r14
	movq	8(%rsi), %rbx
	movq	$0, (%rbx)
	movq	%rsi, 72(%rbx)
	movl	$0, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 56(%rbx)
	movq	_rtw_vif_port@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r15), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.5:
	movq	_BIT_EN_BCN_FUNCTION@GOTPCREL(%rip), %rax
	movq	_BIT_DIS_TSF_UDT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	orq	(%rax), %r12
	movq	_RTW_NET_AP_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	cmpl	$131, %eax
	jne	LBB0_3
## %bb.2:
	movq	_BIT_EN_BCN_FUNCTION@GOTPCREL(%rip), %rax
	movq	_BIT_DIS_TSF_UDT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	orq	(%rax), %r12
	movq	_RTW_NET_AD_HOC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_BIT_EN_BCN_FUNCTION@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_RTW_NET_NO_LINK@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r13d
	movl	24(%rbx), %edi
	movl	4(%r15), %esi
	callq	_ether_addr_copy
	movq	_PORT_SET_MAC_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, 12(%rbx)
	movq	_PORT_SET_NET_TYPE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, 16(%rbx)
	movq	_PORT_SET_BCN_CTRL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rtw_vif_port_config
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	4(%r15), %edx
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_rtw_info
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rtw_vif_port,8,3               ## @rtw_vif_port
	.comm	_RTW_NET_AP_MODE,4,2            ## @RTW_NET_AP_MODE
	.comm	_BIT_EN_BCN_FUNCTION,8,3        ## @BIT_EN_BCN_FUNCTION
	.comm	_BIT_DIS_TSF_UDT,8,3            ## @BIT_DIS_TSF_UDT
	.comm	_RTW_NET_AD_HOC,4,2             ## @RTW_NET_AD_HOC
	.comm	_RTW_NET_NO_LINK,4,2            ## @RTW_NET_NO_LINK
	.comm	_PORT_SET_MAC_ADDR,4,2          ## @PORT_SET_MAC_ADDR
	.comm	_PORT_SET_NET_TYPE,4,2          ## @PORT_SET_NET_TYPE
	.comm	_PORT_SET_BCN_CTRL,4,2          ## @PORT_SET_BCN_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start vif %pM on port %d\n"

	.no_dead_strip	_rtw_ops_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_ops_add_interface
_rtw_ops_add_interface:                 ; @rtw_ops_add_interface
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	ldr	x19, [x0]
	ldr	x21, [x1, #8]
	str	xzr, [x21]
	str	x1, [x21, #72]
	str	wzr, [x21, #8]
	movi.2d	v0, #0000000000000000
	stur	q0, [x21, #40]
	stur	q0, [x21, #56]
Lloh0:
	adrp	x8, _rtw_vif_port@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rtw_vif_port@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x21, #32]
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BIT_EN_BCN_FUNCTION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIT_EN_BCN_FUNCTION@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _BIT_DIS_TSF_UDT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BIT_DIS_TSF_UDT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	orr	x22, x9, x8
Lloh9:
	adrp	x8, _RTW_NET_AP_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTW_NET_AP_MODE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	cmp	w8, #131
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _BIT_EN_BCN_FUNCTION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BIT_EN_BCN_FUNCTION@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _BIT_DIS_TSF_UDT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BIT_DIS_TSF_UDT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	orr	x22, x9, x8
Lloh17:
	adrp	x8, _RTW_NET_AD_HOC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RTW_NET_AD_HOC@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _BIT_EN_BCN_FUNCTION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BIT_EN_BCN_FUNCTION@GOTPAGEOFF]
Lloh21:
	ldr	x22, [x8]
Lloh22:
	adrp	x8, _RTW_NET_NO_LINK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RTW_NET_NO_LINK@GOTPAGEOFF]
LBB0_5:
	ldr	w23, [x8]
	ldr	w0, [x21, #24]
	ldr	w1, [x20, #4]
	bl	_ether_addr_copy
Lloh24:
	adrp	x8, _PORT_SET_MAC_ADDR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PORT_SET_MAC_ADDR@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w23, [x21, #12]
Lloh27:
	adrp	x9, _PORT_SET_NET_TYPE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PORT_SET_NET_TYPE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	x22, [x21, #16]
Lloh30:
	adrp	x9, _PORT_SET_BCN_CTRL@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PORT_SET_BCN_CTRL@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x21
	bl	_rtw_vif_port_config
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w2, [x20, #4]
	ldr	x3, [x21]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_info
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_rtw_vif_port,8,3               ; @rtw_vif_port
	.comm	_RTW_NET_AP_MODE,4,2            ; @RTW_NET_AP_MODE
	.comm	_BIT_EN_BCN_FUNCTION,8,3        ; @BIT_EN_BCN_FUNCTION
	.comm	_BIT_DIS_TSF_UDT,8,3            ; @BIT_DIS_TSF_UDT
	.comm	_RTW_NET_AD_HOC,4,2             ; @RTW_NET_AD_HOC
	.comm	_RTW_NET_NO_LINK,4,2            ; @RTW_NET_NO_LINK
	.comm	_PORT_SET_MAC_ADDR,4,2          ; @PORT_SET_MAC_ADDR
	.comm	_PORT_SET_NET_TYPE,4,2          ; @PORT_SET_NET_TYPE
	.comm	_PORT_SET_BCN_CTRL,4,2          ; @PORT_SET_BCN_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start vif %pM on port %d\n"

	.no_dead_strip	_rtw_ops_add_interface
.subsections_via_symbols
