	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_op_add_interface
_b43_op_add_interface:                  ## @b43_op_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, %r12
	callq	_hw_to_b43_wl
	movq	%rax, %r13
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %ebx
	negl	%ebx
	movl	8(%r15), %eax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.1:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.2:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.3:
	movq	_NL80211_IFTYPE_WDS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
LBB0_5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpl	$0, (%r13)
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%r14d, %r14d
	jne	LBB0_9
	jmp	LBB0_8
LBB0_6:
	movl	8(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_b43dbg
	movq	24(%r13), %rbx
	movl	$1, (%r13)
	movq	%r15, 16(%r13)
	movl	8(%r15), %eax
	movl	%eax, 12(%r13)
	movl	8(%r13), %edi
	movl	4(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_b43_adjust_opmode
	movq	%rbx, %rdi
	callq	_b43_set_pretbtt
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b43_set_synth_pu_delay
	movq	%rbx, %rdi
	callq	_b43_upload_card_macaddress
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r15, %rdx
	movl	$-1, %ecx
	callq	_b43_op_bss_info_changed
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_WDS,4,2         ## @NL80211_IFTYPE_WDS
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding Interface type %d\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_b43_op_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_op_add_interface
_b43_op_add_interface:                  ; @b43_op_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	x19, x1
	mov	x20, x0
	bl	_hw_to_b43_wl
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	neg	w23, w24
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh10:
	ldr	x11, [x11, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _NL80211_IFTYPE_WDS@GOTPAGE
Lloh13:
	ldr	x12, [x12, _NL80211_IFTYPE_WDS@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
Lloh15:
	adrp	x13, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh16:
	ldr	x13, [x13, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	ccmp	w8, w12, #4, ne
	ccmp	w8, w13, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x22, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x22]
	cbz	w8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_mutex_unlock
	cbnz	w24, LBB0_5
	b	LBB0_4
LBB0_3:
	ldr	w2, [x19, #8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_b43dbg
	ldr	x23, [x22, #24]
	mov	w8, #1
	str	w8, [x22]
	str	x19, [x22, #16]
	ldp	w1, w8, [x19, #4]
	str	w8, [x22, #12]
	ldr	w0, [x22, #8]
Lloh20:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_memcpy
	mov	x0, x23
	bl	_b43_adjust_opmode
	mov	x0, x23
	bl	_b43_set_pretbtt
	mov	x0, x23
	mov	w1, #0
	bl	_b43_set_synth_pu_delay
	mov	x0, x23
	bl	_b43_upload_card_macaddress
	mov	x0, x21
	bl	_mutex_unlock
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	mov	w3, #-1
	bl	_b43_op_bss_info_changed
	mov	w23, #0
LBB0_5:
	mov	x0, x23
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_WDS,4,2         ; @NL80211_IFTYPE_WDS
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding Interface type %d\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_b43_op_add_interface
.subsections_via_symbols
