	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _init_airo_card
__init_airo_card:                       ## @_init_airo_card
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movl	%edi, %r12d
	movq	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ether_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$144, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, 16(%r14)
	movq	$0, 40(%rax)
	movq	_FLAG_RADIO_DOWN@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%r15)
	movq	$0, 136(%r15)
	movq	%r14, 64(%r15)
	testq	%r13, %r13
	je	LBB0_6
## %bb.3:
	movl	(%r13), %eax
	cmpl	$42244, %eax                    ## imm = 0xA504
	je	LBB0_5
## %bb.4:
	cmpl	$20480, %eax                    ## imm = 0x5000
	jne	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_airo_print_dbg
	movq	_FLAG_MPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
LBB0_6:
	leaq	132(%r15), %rdi
	callq	_spin_lock_init
	leaq	128(%r15), %rdi
	movl	$1, %esi
	callq	_sema_init
	movq	$0, 120(%r15)
	movq	%r13, 16(%r15)
	leaq	112(%r15), %rdi
	callq	_init_waitqueue_head
	movq	$0, 104(%r15)
	movq	%r15, %rdi
	callq	_add_airo_dev
	movl	$4, %edi
	callq	_cpu_to_le16
	movl	%eax, 96(%r15)
	movq	%r15, %rdi
	callq	_airo_networks_allocate
	testq	%rax, %rax
	jne	LBB0_44
## %bb.7:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_airo_networks_initialize
	leaq	92(%r15), %rdi
	callq	_skb_queue_head_init
	movq	_FLAG_MPI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	_airo_netdev_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_airo_print_err
	jmp	LBB0_45
LBB0_8:
	movq	_mpi_netdev_ops@GOTPCREL(%rip), %rax
LBB0_10:
	movq	%rax, 56(%r14)
	movq	_airo_handler_def@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	leaq	88(%r15), %rax
	movq	%r15, %rcx
	addq	$80, %rcx
	movq	%rax, 80(%r15)
	movq	%rcx, 40(%r14)
	movw	%r12w, (%r14)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movq	_IFF_TX_SKB_SHARING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 32(%r14)
	movq	_MIC_MSGLEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_reset_card
	movl	$400, %edi                      ## imm = 0x190
	callq	_msleep
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	jne	LBB0_13
## %bb.11:
	movl	4(%r14), %edi
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_mpi_map_card
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_airo_print_err
	jmp	LBB0_41
LBB0_16:
	movq	_probe@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_19
## %bb.17:
	movl	24(%r14), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_setup_card
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.18:
	movq	8(%r14), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_airo_print_err
	jmp	LBB0_38
LBB0_19:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	_fast_bap_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15)
	movq	_FLAG_FLASHING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
LBB0_21:
	movq	8(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	8(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_airo_print_err
	jmp	LBB0_38
LBB0_12:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_airo_print_err
	jmp	LBB0_43
LBB0_23:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_init_wifidev
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_37
## %bb.24:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_readCapabilityRid
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_36
## %bb.25:
	movq	%r13, %rbx
	movl	-56(%rbp), %r12d
	movl	$2, %edi
	callq	_cpu_to_le16
	xorl	%ecx, %ecx
	testl	%r12d, %eax
	setne	%cl
	movl	%ecx, 4(%r15)
	movl	-56(%rbp), %r12d
	movl	$128, %edi
	callq	_cpu_to_le16
	xorl	%ecx, %ecx
	testl	%r12d, %eax
	setne	%cl
	leal	(%rcx,%rcx,2), %eax
	movl	%eax, 8(%r15)
	movq	8(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	shrl	$8, %r12d
	andl	$15, %r12d
	movl	-48(%rbp), %edi
	callq	_le16_to_cpu
	movzbl	%al, %r13d
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	leaq	L_.str.8(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_airo_print_info
	movl	-48(%rbp), %edi
	callq	_le16_to_cpu
	cmpl	$1328, %eax                     ## imm = 0x530
	jle	LBB0_26
LBB0_28:
	movq	64(%r15), %rax
	movq	8(%rax), %rdi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_airo_print_info
	movq	_FLAG_WPA_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movl	$4, %r12d
	movq	_RID_WPA_BSSLISTNEXT@GOTPCREL(%rip), %rax
	movq	_RID_WPA_BSSLISTFIRST@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
LBB0_26:
	movl	-48(%rbp), %edi
	callq	_le16_to_cpu
	cmpl	$1328, %eax                     ## imm = 0x530
	jne	LBB0_29
## %bb.27:
	movl	-52(%rbp), %edi
	callq	_le16_to_cpu
	cmpl	$17, %eax
	jge	LBB0_28
LBB0_29:
	movq	64(%r15), %rax
	movq	8(%rax), %rdi
	leaq	L_.str.10(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_airo_print_info
	movq	_RID_BSSLISTNEXT@GOTPCREL(%rip), %rax
	movq	_RID_BSSLISTFIRST@GOTPCREL(%rip), %rcx
LBB0_30:
	movl	(%rcx), %ecx
	movl	%ecx, 60(%r15)
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movl	%r12d, 12(%r15)
	movq	_FLAG_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	8(%r14), %rdi
	movl	24(%r14), %edx
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_airo_print_info
	cmpq	$0, (%rbx)
	je	LBB0_35
## %bb.31:
	movq	_FLAG_MPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_35
## %bb.32:
	movq	_MAX_FIDS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_35
## %bb.33:
	xorl	%r12d, %r12d
	movq	_AIRO_DEF_MTU@GOTPCREL(%rip), %r13
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	xorl	%edx, %edx
	cmpq	%rax, %r12
	setge	%dl
	movq	%r15, %rdi
	callq	_transmit_allocate
	movq	48(%r15), %rcx
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jl	LBB0_34
LBB0_35:
	movq	16(%r14), %rsi
	movq	%r14, %rdi
	callq	_setup_proc_entry
	testq	%rax, %rax
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movq	_FLAG_MPI@GOTPCREL(%rip), %rbx
	jns	LBB0_46
LBB0_36:
	movq	40(%r15), %rdi
	callq	_unregister_netdev
	movq	40(%r15), %rdi
	callq	_free_netdev
LBB0_37:
	movq	%r14, %rdi
	callq	_unregister_netdev
LBB0_38:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_bit
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.39:
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	movq	_PCI_SHARED_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r15), %ecx
	movl	36(%r15), %edx
	callq	_pci_free_consistent
	movl	28(%r15), %edi
	callq	_iounmap
	movl	24(%r15), %edi
	callq	_iounmap
	movq	16(%r15), %rdi
	callq	_mpi_unmap_card
LBB0_41:
	testl	%r12d, %r12d
	jne	LBB0_43
## %bb.42:
	movl	4(%r14), %edi
	movl	$64, %esi
	callq	_release_region
LBB0_43:
	movq	%r15, %rdi
	callq	_airo_networks_free
LBB0_44:
	movq	%r15, %rdi
	callq	_del_airo_dev
	movq	%r14, %rdi
	callq	_free_netdev
LBB0_45:
	xorl	%r14d, %r14d
LBB0_46:
	movq	%r14, %rax
	addq	$56, %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
	.space	1

	.comm	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.comm	_ether_setup,4,2                ## @ether_setup
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't alloc_etherdev"

	.comm	_FLAG_RADIO_DOWN,4,2            ## @FLAG_RADIO_DOWN
L_.str.2:                               ## @.str.2
	.asciz	"Found an MPI350 card"

	.comm	_FLAG_MPI,4,2                   ## @FLAG_MPI
	.comm	_mpi_netdev_ops,4,2             ## @mpi_netdev_ops
	.comm	_airo_netdev_ops,4,2            ## @airo_netdev_ops
	.comm	_airo_handler_def,4,2           ## @airo_handler_def
	.comm	_IFF_TX_SKB_SHARING,4,2         ## @IFF_TX_SKB_SHARING
	.comm	_MIC_MSGLEN_MAX,4,2             ## @MIC_MSGLEN_MAX
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't request region"

L_.str.4:                               ## @.str.4
	.asciz	"Could not map memory"

	.comm	_probe,8,3                      ## @probe
	.comm	_SUCCESS,4,2                    ## @SUCCESS
L_.str.5:                               ## @.str.5
	.asciz	"MAC could not be enabled"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_fast_bap_read,4,2              ## @fast_bap_read
	.comm	_FLAG_FLASHING,4,2              ## @FLAG_FLASHING
L_.str.6:                               ## @.str.6
	.asciz	"eth%d"

L_.str.7:                               ## @.str.7
	.asciz	"Couldn't register_netdev"

L_.str.8:                               ## @.str.8
	.asciz	"Firmware version %x.%x.%02d"

L_.str.9:                               ## @.str.9
	.asciz	"WPA supported."

	.comm	_FLAG_WPA_CAPABLE,4,2           ## @FLAG_WPA_CAPABLE
	.comm	_RID_WPA_BSSLISTFIRST,4,2       ## @RID_WPA_BSSLISTFIRST
	.comm	_RID_WPA_BSSLISTNEXT,4,2        ## @RID_WPA_BSSLISTNEXT
L_.str.10:                              ## @.str.10
	.asciz	"WPA unsupported with firmware versions older than 5.30.17."

	.comm	_RID_BSSLISTFIRST,4,2           ## @RID_BSSLISTFIRST
	.comm	_RID_BSSLISTNEXT,4,2            ## @RID_BSSLISTNEXT
	.comm	_FLAG_REGISTERED,4,2            ## @FLAG_REGISTERED
L_.str.11:                              ## @.str.11
	.asciz	"MAC enabled %pM"

	.comm	_MAX_FIDS,4,2                   ## @MAX_FIDS
	.comm	_AIRO_DEF_MTU,4,2               ## @AIRO_DEF_MTU
	.comm	_PCI_SHARED_LEN,4,2             ## @PCI_SHARED_LEN
	.no_dead_strip	__init_airo_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _init_airo_card
__init_airo_card:                       ; @_init_airo_card
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, _NET_NAME_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _ether_setup@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ether_setup@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #144
	bl	_alloc_netdev
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.1:
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
	str	x0, [x19, #16]
	str	xzr, [x0, #40]
Lloh8:
	adrp	x8, _FLAG_RADIO_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FLAG_RADIO_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x0]
	str	xzr, [x0, #136]
	str	x19, [x0, #64]
	cbz	x22, LBB0_5
; %bb.2:
	ldr	w8, [x22]
	mov	w9, #42244
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	cmp	w8, #5, lsl #12                 ; =20480
	b.ne	LBB0_5
LBB0_4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_airo_print_dbg
Lloh15:
	adrp	x8, _FLAG_MPI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FLAG_MPI@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
LBB0_5:
	add	x0, x20, #132
	bl	_spin_lock_init
	add	x0, x20, #128
	mov	w1, #1
	bl	_sema_init
	str	xzr, [x20, #120]
	str	x22, [x20, #16]
	add	x0, x20, #112
	bl	_init_waitqueue_head
	str	xzr, [x20, #104]
	mov	x0, x20
	bl	_add_airo_dev
	mov	w0, #4
	bl	_cpu_to_le16
	str	w0, [x20, #96]
	mov	x0, x20
	bl	_airo_networks_allocate
	cbnz	x0, LBB0_41
; %bb.6:
	mov	x0, x20
	bl	_airo_networks_initialize
	add	x0, x20, #92
	bl	_skb_queue_head_init
Lloh18:
	adrp	x26, _FLAG_MPI@GOTPAGE
Lloh19:
	ldr	x26, [x26, _FLAG_MPI@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x20
	bl	_test_bit
Lloh20:
	adrp	x8, _mpi_netdev_ops@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mpi_netdev_ops@GOTPAGEOFF]
Lloh22:
	adrp	x9, _airo_netdev_ops@GOTPAGE
Lloh23:
	ldr	x9, [x9, _airo_netdev_ops@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	str	x8, [x19, #56]
Lloh24:
	adrp	x8, _airo_handler_def@GOTPAGE
Lloh25:
	ldr	x8, [x8, _airo_handler_def@GOTPAGEOFF]
	add	x9, x20, #88
	mov	x10, x20
	str	x9, [x10, #80]!
	stp	x10, x8, [x19, #40]
	strh	w25, [x19]
	str	w24, [x19, #4]
Lloh26:
	adrp	x8, _IFF_TX_SKB_SHARING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IFF_TX_SKB_SHARING@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	bic	w8, w9, w8
Lloh29:
	adrp	x9, _MIC_MSGLEN_MAX@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MIC_MSGLEN_MAX@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
	mov	x0, x19
	mov	x1, x23
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	mov	w1, #1
	bl	_reset_card
	mov	w0, #400
	bl	_msleep
	cbnz	w21, LBB0_8
; %bb.7:
	ldr	w0, [x19, #4]
Lloh32:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_request_region
	cbz	w0, LBB0_19
LBB0_8:
	ldr	w0, [x26]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.9:
	mov	x0, x20
	mov	x1, x22
	bl	_mpi_map_card
	cbz	x0, LBB0_12
; %bb.10:
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_airo_print_err
	b	LBB0_38
LBB0_11:
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_airo_print_err
	b	LBB0_42
LBB0_12:
Lloh43:
	adrp	x24, _probe@GOTPAGE
Lloh44:
	ldr	x24, [x24, _probe@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	w1, [x19, #24]
	mov	x0, x20
	mov	w2, #1
	bl	_setup_card
Lloh45:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_17
; %bb.14:
	ldr	x0, [x19, #8]
Lloh48:
	adrp	x1, l_.str.5@PAGE
Lloh49:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_airo_print_err
	b	LBB0_35
LBB0_15:
	ldr	w0, [x26]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_17
; %bb.16:
Lloh50:
	adrp	x8, _fast_bap_read@GOTPAGE
Lloh51:
	ldr	x8, [x8, _fast_bap_read@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	str	w8, [x20, #72]
Lloh53:
	adrp	x8, _FLAG_FLASHING@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FLAG_FLASHING@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
LBB0_17:
	ldr	x0, [x19, #8]
Lloh56:
	adrp	x1, l_.str.6@PAGE
Lloh57:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcpy
	mov	x0, x19
	bl	_register_netdev
	cbz	w0, LBB0_20
; %bb.18:
	ldr	x0, [x19, #8]
Lloh58:
	adrp	x1, l_.str.7@PAGE
Lloh59:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_airo_print_err
	b	LBB0_35
LBB0_19:
	ldr	x0, [x19, #8]
Lloh60:
	adrp	x1, l_.str.3@PAGE
Lloh61:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_airo_print_err
	b	LBB0_40
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	bl	_init_wifidev
	str	x0, [x20, #40]
	cbz	x0, LBB0_34
; %bb.21:
	add	x1, sp, #32
	mov	x0, x20
	mov	w2, #1
	bl	_readCapabilityRid
Lloh62:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh63:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_33
; %bb.22:
	ldr	w23, [sp, #32]
	mov	w0, #2
	bl	_cpu_to_le16
	tst	w0, w23
	cset	w8, ne
	str	w8, [x20, #4]
	ldr	w23, [sp, #32]
	mov	w0, #128
	bl	_cpu_to_le16
	tst	w0, w23
	mov	w8, #3
	csel	w8, wzr, w8, eq
	str	w8, [x20, #8]
	ldr	x23, [x19, #8]
	ldr	w0, [sp, #40]
	bl	_le16_to_cpu
	ubfx	w25, w0, #8, #4
	ldr	w0, [sp, #40]
	bl	_le16_to_cpu
	and	w27, w0, #0xff
	ldr	w0, [sp, #36]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x27, x0, [sp, #8]
	str	x25, [sp]
Lloh65:
	adrp	x1, l_.str.8@PAGE
Lloh66:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x23
	bl	_airo_print_info
	ldr	w0, [sp, #40]
	bl	_le16_to_cpu
	cmp	w0, #1328
	b.le	LBB0_24
LBB0_23:
	ldr	x8, [x20, #64]
	ldr	x0, [x8, #8]
Lloh67:
	adrp	x1, l_.str.9@PAGE
Lloh68:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_airo_print_info
Lloh69:
	adrp	x8, _FLAG_WPA_CAPABLE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _FLAG_WPA_CAPABLE@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	w8, #4
Lloh72:
	adrp	x9, _RID_WPA_BSSLISTNEXT@GOTPAGE
Lloh73:
	ldr	x9, [x9, _RID_WPA_BSSLISTNEXT@GOTPAGEOFF]
Lloh74:
	adrp	x10, _RID_WPA_BSSLISTFIRST@GOTPAGE
Lloh75:
	ldr	x10, [x10, _RID_WPA_BSSLISTFIRST@GOTPAGEOFF]
	b	LBB0_27
LBB0_24:
	ldr	w0, [sp, #40]
	bl	_le16_to_cpu
	cmp	w0, #1328
	b.ne	LBB0_26
; %bb.25:
	ldr	w0, [sp, #36]
	bl	_le16_to_cpu
	cmp	w0, #17
	b.ge	LBB0_23
LBB0_26:
	ldr	x8, [x20, #64]
	ldr	x0, [x8, #8]
Lloh76:
	adrp	x1, l_.str.10@PAGE
Lloh77:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_airo_print_info
	mov	w8, #0
Lloh78:
	adrp	x9, _RID_BSSLISTNEXT@GOTPAGE
Lloh79:
	ldr	x9, [x9, _RID_BSSLISTNEXT@GOTPAGEOFF]
Lloh80:
	adrp	x10, _RID_BSSLISTFIRST@GOTPAGE
Lloh81:
	ldr	x10, [x10, _RID_BSSLISTFIRST@GOTPAGEOFF]
LBB0_27:
	ldr	w10, [x10]
	ldr	w9, [x9]
	stp	w9, w10, [x20, #56]
	str	w8, [x20, #12]
Lloh82:
	adrp	x8, _FLAG_REGISTERED@GOTPAGE
Lloh83:
	ldr	x8, [x8, _FLAG_REGISTERED@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	ldr	x0, [x19, #8]
	ldr	w8, [x19, #24]
	str	x8, [sp]
Lloh85:
	adrp	x1, l_.str.11@PAGE
Lloh86:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_airo_print_info
	ldr	x8, [x24]
	cbz	x8, LBB0_32
; %bb.28:
	ldr	w0, [x26]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_32
; %bb.29:
Lloh87:
	adrp	x23, _MAX_FIDS@GOTPAGE
Lloh88:
	ldr	x23, [x23, _MAX_FIDS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.30:
	mov	x24, #0
Lloh89:
	adrp	x25, _AIRO_DEF_MTU@GOTPAGE
Lloh90:
	ldr	x25, [x25, _AIRO_DEF_MTU@GOTPAGEOFF]
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x24, w8, sxtw
	cset	w2, ge
	mov	x0, x20
	bl	_transmit_allocate
	ldr	x8, [x20, #48]
	str	w0, [x8, x24, lsl #2]
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_31
LBB0_32:
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_setup_proc_entry
	tbz	x0, #63, LBB0_42
LBB0_33:
	ldr	x0, [x20, #40]
	bl	_unregister_netdev
	ldr	x0, [x20, #40]
	bl	_free_netdev
LBB0_34:
	mov	x0, x19
	bl	_unregister_netdev
LBB0_35:
	ldr	w0, [x26]
	mov	x1, x20
	bl	_test_bit
	cbz	x22, LBB0_38
; %bb.36:
	cbz	x0, LBB0_38
; %bb.37:
Lloh91:
	adrp	x8, _PCI_SHARED_LEN@GOTPAGE
Lloh92:
	ldr	x8, [x8, _PCI_SHARED_LEN@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
	ldp	w3, w2, [x20, #32]
	mov	x0, x22
	bl	_pci_free_consistent
	ldr	w0, [x20, #28]
	bl	_iounmap
	ldr	w0, [x20, #24]
	bl	_iounmap
	ldr	x0, [x20, #16]
	bl	_mpi_unmap_card
LBB0_38:
	cbnz	w21, LBB0_40
; %bb.39:
	ldr	w0, [x19, #4]
	mov	w1, #64
	bl	_release_region
LBB0_40:
	mov	x0, x20
	bl	_airo_networks_free
LBB0_41:
	mov	x0, x20
	bl	_del_airo_dev
	mov	x0, x19
	bl	_free_netdev
	mov	x19, #0
LBB0_42:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.comm	_ether_setup,4,2                ; @ether_setup
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't alloc_etherdev"

	.comm	_FLAG_RADIO_DOWN,4,2            ; @FLAG_RADIO_DOWN
l_.str.2:                               ; @.str.2
	.asciz	"Found an MPI350 card"

	.comm	_FLAG_MPI,4,2                   ; @FLAG_MPI
	.comm	_mpi_netdev_ops,4,2             ; @mpi_netdev_ops
	.comm	_airo_netdev_ops,4,2            ; @airo_netdev_ops
	.comm	_airo_handler_def,4,2           ; @airo_handler_def
	.comm	_IFF_TX_SKB_SHARING,4,2         ; @IFF_TX_SKB_SHARING
	.comm	_MIC_MSGLEN_MAX,4,2             ; @MIC_MSGLEN_MAX
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't request region"

l_.str.4:                               ; @.str.4
	.asciz	"Could not map memory"

	.comm	_probe,8,3                      ; @probe
	.comm	_SUCCESS,4,2                    ; @SUCCESS
l_.str.5:                               ; @.str.5
	.asciz	"MAC could not be enabled"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_fast_bap_read,4,2              ; @fast_bap_read
	.comm	_FLAG_FLASHING,4,2              ; @FLAG_FLASHING
l_.str.6:                               ; @.str.6
	.asciz	"eth%d"

l_.str.7:                               ; @.str.7
	.asciz	"Couldn't register_netdev"

l_.str.8:                               ; @.str.8
	.asciz	"Firmware version %x.%x.%02d"

l_.str.9:                               ; @.str.9
	.asciz	"WPA supported."

	.comm	_FLAG_WPA_CAPABLE,4,2           ; @FLAG_WPA_CAPABLE
	.comm	_RID_WPA_BSSLISTFIRST,4,2       ; @RID_WPA_BSSLISTFIRST
	.comm	_RID_WPA_BSSLISTNEXT,4,2        ; @RID_WPA_BSSLISTNEXT
l_.str.10:                              ; @.str.10
	.asciz	"WPA unsupported with firmware versions older than 5.30.17."

	.comm	_RID_BSSLISTFIRST,4,2           ; @RID_BSSLISTFIRST
	.comm	_RID_BSSLISTNEXT,4,2            ; @RID_BSSLISTNEXT
	.comm	_FLAG_REGISTERED,4,2            ; @FLAG_REGISTERED
l_.str.11:                              ; @.str.11
	.asciz	"MAC enabled %pM"

	.comm	_MAX_FIDS,4,2                   ; @MAX_FIDS
	.comm	_AIRO_DEF_MTU,4,2               ; @AIRO_DEF_MTU
	.comm	_PCI_SHARED_LEN,4,2             ; @PCI_SHARED_LEN
	.no_dead_strip	__init_airo_card
.subsections_via_symbols
