	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_if_add                     ## -- Begin function wil_if_add
	.p2align	4, 0x90
_wil_if_add:                            ## @wil_if_add
	.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	%rdi, %rbx
	movq	32(%rdi), %rdi
	movq	40(%rbx), %r14
	callq	_ndev_to_vif
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wil_dbg_misc
	movl	(%r14), %edi
	movl	24(%rbx), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r14, %rdi
	callq	_wiphy_register
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_init_dummy_netdev
	cmpq	$0, 16(%rbx)
	movq	_wil6210_netdev_poll_rx_edma@GOTPCREL(%rip), %rax
	cmoveq	_wil6210_netdev_poll_rx@GOTPCREL(%rip), %rax
	leaq	8(%rbx), %rsi
	movl	(%rax), %edx
	movq	_WIL6210_NAPI_BUDGET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_wil6210_netdev_poll_tx_edma@GOTPCREL(%rip), %r15
	cmoveq	_wil6210_netdev_poll_tx@GOTPCREL(%rip), %r15
	movq	%r12, %rdi
	callq	_netif_napi_add
	movl	(%r15), %edx
	movq	_WIL6210_NAPI_BUDGET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_netif_tx_napi_add
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_wil_update_net_queues_bh
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_wil_vif_add
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	testl	%ebx, %ebx
	jns	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_wiphy_unregister
	movl	%ebx, %r12d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_wil_err
LBB0_4:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entered"

L_.str.1:                               ## @.str.1
	.asciz	"failed to register wiphy, err %d\n"

	.comm	_wil6210_netdev_poll_rx_edma,4,2 ## @wil6210_netdev_poll_rx_edma
	.comm	_WIL6210_NAPI_BUDGET,4,2        ## @WIL6210_NAPI_BUDGET
	.comm	_wil6210_netdev_poll_tx_edma,4,2 ## @wil6210_netdev_poll_tx_edma
	.comm	_wil6210_netdev_poll_rx,4,2     ## @wil6210_netdev_poll_rx
	.comm	_wil6210_netdev_poll_tx,4,2     ## @wil6210_netdev_poll_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_if_add                     ; -- Begin function wil_if_add
	.p2align	2
_wil_if_add:                            ; @wil_if_add
	.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, x0
	ldp	x0, x19, [x0, #32]
	bl	_ndev_to_vif
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wil_dbg_misc
	ldr	w0, [x19]
	ldr	w1, [x20, #24]
	mov	w2, #4
	bl	_strlcpy
	mov	x0, x19
	bl	_wiphy_register
	tbnz	w0, #31, LBB0_3
; %bb.1:
	add	x22, x20, #4
	mov	x0, x22
	bl	_init_dummy_netdev
	ldr	x8, [x20, #16]
	add	x1, x20, #8
Lloh2:
	adrp	x9, _wil6210_netdev_poll_rx@GOTPAGE
Lloh3:
	ldr	x9, [x9, _wil6210_netdev_poll_rx@GOTPAGEOFF]
Lloh4:
	adrp	x10, _wil6210_netdev_poll_rx_edma@GOTPAGE
Lloh5:
	ldr	x10, [x10, _wil6210_netdev_poll_rx_edma@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w2, [x8]
Lloh6:
	adrp	x23, _WIL6210_NAPI_BUDGET@GOTPAGE
Lloh7:
	ldr	x23, [x23, _WIL6210_NAPI_BUDGET@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh8:
	adrp	x8, _wil6210_netdev_poll_tx@GOTPAGE
Lloh9:
	ldr	x8, [x8, _wil6210_netdev_poll_tx@GOTPAGEOFF]
Lloh10:
	adrp	x9, _wil6210_netdev_poll_tx_edma@GOTPAGE
Lloh11:
	ldr	x9, [x9, _wil6210_netdev_poll_tx_edma@GOTPAGEOFF]
	csel	x24, x8, x9, eq
	mov	x0, x22
	bl	_netif_napi_add
	ldr	w2, [x24]
	ldr	w3, [x23]
	mov	x0, x22
	mov	x1, x20
	bl	_netif_tx_napi_add
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	mov	w3, #1
	bl	_wil_update_net_queues_bh
	bl	_rtnl_lock
	mov	x0, x20
	mov	x1, x21
	bl	_wil_vif_add
	mov	x22, x0
	bl	_rtnl_unlock
	tbnz	w22, #31, LBB0_4
; %bb.2:
	mov	w22, #0
	b	LBB0_5
LBB0_3:
	mov	x22, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_wil_err
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_wiphy_unregister
LBB0_5:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entered"

l_.str.1:                               ; @.str.1
	.asciz	"failed to register wiphy, err %d\n"

	.comm	_wil6210_netdev_poll_rx_edma,4,2 ; @wil6210_netdev_poll_rx_edma
	.comm	_WIL6210_NAPI_BUDGET,4,2        ; @WIL6210_NAPI_BUDGET
	.comm	_wil6210_netdev_poll_tx_edma,4,2 ; @wil6210_netdev_poll_tx_edma
	.comm	_wil6210_netdev_poll_rx,4,2     ; @wil6210_netdev_poll_rx
	.comm	_wil6210_netdev_poll_tx,4,2     ; @wil6210_netdev_poll_tx
.subsections_via_symbols
