	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ifattach             ## -- Begin function ieee80211_ifattach
	.p2align	4, 0x90
_ieee80211_ifattach:                    ## @ieee80211_ifattach
	.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	%rdi, %rbx
	movl	48(%rdi), %esi
	callq	_IEEE80211_LOCK_INIT
	movl	48(%rbx), %esi
	movq	%rbx, %rdi
	callq	_IEEE80211_TX_LOCK_INIT
	leaq	56(%rbx), %rdi
	callq	_TAILQ_INIT
	movq	_M_WAITOK@GOTPCREL(%rip), %r15
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r15), %esi
	movq	_taskqueue_thread_enqueue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	52(%rbx), %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rcx
	callq	_taskqueue_create
	movl	%eax, 52(%rbx)
	movq	_PI_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	48(%rbx), %r8d
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_taskqueue_start_threads
	movl	(%r15), %edi
	callq	_counter_u64_alloc
	movq	%rax, 40(%rbx)
	movl	(%r15), %edi
	callq	_counter_u64_alloc
	movq	%rax, 32(%rbx)
	movq	%rbx, %rdi
	callq	_ieee80211_chan_init
	movq	_null_update_mcast@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_null_update_promisc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_null_update_chw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	callq	_arc4random
	movl	%eax, 12(%rbx)
	movq	_IEEE80211_BINTVAL_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	%eax, 8(%rbx)
	movq	_IEEE80211_TXPOWER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_ieee80211_crypto_attach
	movq	%rbx, %rdi
	callq	_ieee80211_node_attach
	movq	%rbx, %rdi
	callq	_ieee80211_power_attach
	movq	%rbx, %rdi
	callq	_ieee80211_proto_attach
	movq	%rbx, %rdi
	callq	_ieee80211_ht_attach
	movq	%rbx, %rdi
	callq	_ieee80211_vht_attach
	movq	%rbx, %rdi
	callq	_ieee80211_scan_attach
	movq	%rbx, %rdi
	callq	_ieee80211_regdomain_attach
	movq	%rbx, %rdi
	callq	_ieee80211_dfs_attach
	movq	%rbx, %rdi
	callq	_ieee80211_sysctl_attach
	movq	_ic_list_mtx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_ic_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ic_head@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ic_taskq"

	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_taskqueue_thread_enqueue,4,2   ## @taskqueue_thread_enqueue
	.comm	_PI_NET,4,2                     ## @PI_NET
L_.str.1:                               ## @.str.1
	.asciz	"%s net80211 taskq"

	.comm	_null_update_mcast,4,2          ## @null_update_mcast
	.comm	_null_update_promisc,4,2        ## @null_update_promisc
	.comm	_null_update_chw,4,2            ## @null_update_chw
	.comm	_IEEE80211_BINTVAL_DEFAULT,4,2  ## @IEEE80211_BINTVAL_DEFAULT
	.comm	_IEEE80211_TXPOWER_MAX,4,2      ## @IEEE80211_TXPOWER_MAX
	.comm	_ic_list_mtx,4,2                ## @ic_list_mtx
	.comm	_ic_head,4,2                    ## @ic_head
	.comm	_ic_next,4,2                    ## @ic_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ifattach             ; -- Begin function ieee80211_ifattach
	.p2align	2
_ieee80211_ifattach:                    ; @ieee80211_ifattach
	.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, x0
	ldr	w1, [x0, #48]
	bl	_IEEE80211_LOCK_INIT
	ldr	w1, [x19, #48]
	mov	x0, x19
	bl	_IEEE80211_TX_LOCK_INIT
	add	x0, x19, #56
	bl	_TAILQ_INIT
Lloh0:
	adrp	x21, _M_WAITOK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _M_WAITOK@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh5:
	adrp	x8, _taskqueue_thread_enqueue@GOTPAGE
Lloh6:
	ldr	x8, [x8, _taskqueue_thread_enqueue@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x20, x19, #52
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	bl	_taskqueue_create
	str	w0, [x19, #52]
Lloh10:
	adrp	x8, _PI_NET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PI_NET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	w4, [x19, #48]
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	bl	_taskqueue_start_threads
	ldr	w0, [x21]
	bl	_counter_u64_alloc
	str	x0, [x19, #40]
	ldr	w0, [x21]
	bl	_counter_u64_alloc
	str	x0, [x19, #32]
	mov	x0, x19
	bl	_ieee80211_chan_init
Lloh15:
	adrp	x8, _null_update_mcast@GOTPAGE
Lloh16:
	ldr	x8, [x8, _null_update_mcast@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh18:
	adrp	x8, _null_update_promisc@GOTPAGE
Lloh19:
	ldr	x8, [x8, _null_update_promisc@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _null_update_chw@GOTPAGE
Lloh22:
	ldr	x9, [x9, _null_update_chw@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	bl	_arc4random
Lloh24:
	adrp	x8, _IEEE80211_BINTVAL_DEFAULT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IEEE80211_BINTVAL_DEFAULT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #8]
Lloh27:
	adrp	x9, _IEEE80211_TXPOWER_MAX@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IEEE80211_TXPOWER_MAX@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x19
	bl	_ieee80211_crypto_attach
	mov	x0, x19
	bl	_ieee80211_node_attach
	mov	x0, x19
	bl	_ieee80211_power_attach
	mov	x0, x19
	bl	_ieee80211_proto_attach
	mov	x0, x19
	bl	_ieee80211_ht_attach
	mov	x0, x19
	bl	_ieee80211_vht_attach
	mov	x0, x19
	bl	_ieee80211_scan_attach
	mov	x0, x19
	bl	_ieee80211_regdomain_attach
	mov	x0, x19
	bl	_ieee80211_dfs_attach
	mov	x0, x19
	bl	_ieee80211_sysctl_attach
Lloh30:
	adrp	x20, _ic_list_mtx@GOTPAGE
Lloh31:
	ldr	x20, [x20, _ic_list_mtx@GOTPAGEOFF]
	mov	x0, x20
	bl	_mtx_lock
Lloh32:
	adrp	x8, _ic_next@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ic_next@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x0, _ic_head@GOTPAGE
Lloh36:
	ldr	x0, [x0, _ic_head@GOTPAGEOFF]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
	mov	x0, x20
	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
	b	_mtx_unlock
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ic_taskq"

	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_taskqueue_thread_enqueue,4,2   ; @taskqueue_thread_enqueue
	.comm	_PI_NET,4,2                     ; @PI_NET
l_.str.1:                               ; @.str.1
	.asciz	"%s net80211 taskq"

	.comm	_null_update_mcast,4,2          ; @null_update_mcast
	.comm	_null_update_promisc,4,2        ; @null_update_promisc
	.comm	_null_update_chw,4,2            ; @null_update_chw
	.comm	_IEEE80211_BINTVAL_DEFAULT,4,2  ; @IEEE80211_BINTVAL_DEFAULT
	.comm	_IEEE80211_TXPOWER_MAX,4,2      ; @IEEE80211_TXPOWER_MAX
	.comm	_ic_list_mtx,4,2                ; @ic_list_mtx
	.comm	_ic_head,4,2                    ; @ic_head
	.comm	_ic_next,4,2                    ; @ic_next
.subsections_via_symbols
