	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drv_add_interface
_drv_add_interface:                     ## @drv_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_might_sleep
	movq	8(%r14), %rax
	movq	_NL80211_IFTYPE_AP_VLAN@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rcx
	movl	$0, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_IEEE80211_HW_WANT_MONITOR_VIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	testl	%eax, (%r15)
	sete	%dil
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	leaq	8(%r14), %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_trace_drv_add_interface
	movq	8(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_trace_drv_return_int
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.6:
	movq	_IEEE80211_SDATA_IN_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ## @NL80211_IFTYPE_AP_VLAN
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ## @NL80211_IFTYPE_MONITOR
	.comm	_IEEE80211_HW_WANT_MONITOR_VIF,4,2 ## @IEEE80211_HW_WANT_MONITOR_VIF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_SDATA_IN_DRIVER,4,2  ## @IEEE80211_SDATA_IN_DRIVER
	.no_dead_strip	_drv_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drv_add_interface
_drv_add_interface:                     ; @drv_add_interface
	.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	x19, x1
	mov	x20, x0
	bl	_might_sleep
	mov	x21, x19
	ldr	x8, [x21, #8]!
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP_VLAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP_VLAN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_4
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x9, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _IEEE80211_HW_WANT_MONITOR_VIF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_HW_WANT_MONITOR_VIF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
	mov	w0, #0
	bl	_WARN_ON
	cbnz	x0, LBB0_4
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_trace_drv_add_interface
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_trace_drv_return_int
	cbnz	w21, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _IEEE80211_SDATA_IN_DRIVER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_SDATA_IN_DRIVER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ; @NL80211_IFTYPE_AP_VLAN
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ; @NL80211_IFTYPE_MONITOR
	.comm	_IEEE80211_HW_WANT_MONITOR_VIF,4,2 ; @IEEE80211_HW_WANT_MONITOR_VIF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_SDATA_IN_DRIVER,4,2  ; @IEEE80211_SDATA_IN_DRIVER
	.no_dead_strip	_drv_add_interface
.subsections_via_symbols
