	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_init                   ## -- Begin function orinoco_init
	.p2align	4, 0x90
_orinoco_init:                          ## @orinoco_init
	.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, %r12
	movq	152(%rdi), %r14
	callq	_priv_to_wiphy
	movq	%rax, %r15
	leaq	144(%r12), %rdi
	movq	_IEEE80211_MAX_FRAME_LEN@GOTPCREL(%rip), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 136(%r12)
	movq	144(%r12), %rax
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_27
LBB0_2:
	movl	8(%r15), %esi
	movq	%r15, %r13
	addq	$4, %r13
	movq	%r12, %rdi
	movl	$4, %edx
	movq	%r13, %rcx
	callq	_determine_fw_capabilities
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, 128(%r12)
	je	LBB0_9
## %bb.6:
	movq	%r12, %rdi
	callq	_orinoco_download
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	$0, 128(%r12)
LBB0_8:
	movl	8(%r15), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	movq	%r13, %rcx
	callq	_determine_fw_capabilities
	testl	%eax, %eax
	jne	LBB0_3
LBB0_9:
	cmpq	$0, 88(%r12)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_11:
	cmpq	$0, 80(%r12)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_13:
	cmpq	$0, 120(%r12)
	je	LBB0_15
## %bb.14:
	cmpq	$0, 112(%r12)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_15:
	cmpq	$0, 104(%r12)
	je	LBB0_18
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r12, %rdi
	callq	_orinoco_mic_init
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	$0, 104(%r12)
LBB0_18:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_orinoco_hw_read_card_settings
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.19:
	movq	%r12, %rdi
	callq	_orinoco_hw_allocate_fid
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_4
LBB0_21:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r12)
	cmpq	$0, 88(%r12)
	je	LBB0_22
## %bb.23:
	xorl	%eax, %eax
	cmpq	$0, 80(%r12)
	sete	%al
	jmp	LBB0_24
LBB0_22:
	xorl	%eax, %eax
LBB0_24:
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_set_port_type
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r12)
	movq	_ORINOCO_ALG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	movups	%xmm0, 40(%r12)
	movups	%xmm0, 24(%r12)
	movups	%xmm0, 8(%r12)
	movq	%r15, %rdi
	callq	_orinoco_wiphy_register
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_26:
	movq	%r12, %rdi
	callq	_orinoco_lock_irq
	decl	4(%r12)
	movq	%r12, %rdi
	callq	_orinoco_unlock_irq
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MAX_FRAME_LEN,8,3    ## @IEEE80211_MAX_FRAME_LEN
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize firmware (err = %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Incompatible firmware, aborting\n"

L_.str.2:                               ## @.str.2
	.asciz	"Ad-hoc demo mode supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"IEEE standard IBSS ad-hoc mode supported\n"

L_.str.4:                               ## @.str.4
	.asciz	"WEP supported, %s-bit key\n"

L_.str.5:                               ## @.str.5
	.asciz	"104"

L_.str.6:                               ## @.str.6
	.asciz	"40"

L_.str.7:                               ## @.str.7
	.asciz	"WPA-PSK supported\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to setup MIC crypto algorithm. Disabling WPA support\n"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to allocate NIC buffer!\n"

	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_ORINOCO_ALG_NONE,4,2           ## @ORINOCO_ALG_NONE
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.10:                              ## @.str.10
	.asciz	"Ready\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_init                   ; -- Begin function orinoco_init
	.p2align	2
_orinoco_init:                          ; @orinoco_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x19, [x0, #152]
	bl	_priv_to_wiphy
	mov	x21, x0
Lloh0:
	adrp	x8, _IEEE80211_MAX_FRAME_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_MAX_FRAME_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x9, x8
	mov	x0, x20
	ldr	x9, [x0, #144]!
	stur	x8, [x0, #-8]
	ldr	x8, [x9]
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	str	x22, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w1, [x21, #8]
	add	x23, x21, #4
	mov	x0, x20
	mov	w2, #4
	mov	x3, x23
	bl	_determine_fw_capabilities
	cbz	w0, LBB0_6
LBB0_3:
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	x8, [x20, #128]
	cbz	x8, LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_orinoco_download
	cbz	w0, LBB0_9
; %bb.8:
	str	xzr, [x20, #128]
LBB0_9:
	ldr	w1, [x21, #8]
	mov	x0, x20
	mov	w2, #4
	mov	x3, x23
	bl	_determine_fw_capabilities
	cbnz	w0, LBB0_3
LBB0_10:
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_12
; %bb.11:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_12:
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_14
; %bb.13:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_14:
	ldr	x8, [x20, #120]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	x8, [x20, #112]
Lloh14:
	adrp	x9, l_.str.5@PAGE
Lloh15:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh16:
	adrp	x10, l_.str.6@PAGE
Lloh17:
	add	x10, x10, l_.str.6@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_16:
	ldr	x8, [x20, #104]
	cbz	x8, LBB0_19
; %bb.17:
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x20
	bl	_orinoco_mic_init
	cbz	x0, LBB0_19
; %bb.18:
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	str	xzr, [x20, #104]
LBB0_19:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_orinoco_hw_read_card_settings
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.20:
	mov	x0, x20
	bl	_orinoco_hw_allocate_fid
	cbz	w0, LBB0_22
; %bb.21:
	mov	x22, x0
Lloh24:
	adrp	x1, l_.str.9@PAGE
Lloh25:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_4
LBB0_22:
Lloh26:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x20, #96]
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_24
; %bb.23:
	ldr	x8, [x20, #80]
	cmp	x8, #0
	cset	w8, eq
LBB0_24:
	str	w8, [x20]
	mov	x0, x20
	bl	_set_port_type
	stp	xzr, xzr, [x20, #64]
Lloh29:
	adrp	x8, _ORINOCO_ALG_NONE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ORINOCO_ALG_NONE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x20, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #8]
	stur	q0, [x20, #24]
	stur	q0, [x20, #40]
	mov	x0, x21
	bl	_orinoco_wiphy_register
	cbz	x0, LBB0_26
; %bb.25:
Lloh32:
	adrp	x8, _ENODEV@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_26:
	mov	x0, x20
	bl	_orinoco_lock_irq
	ldr	w8, [x20, #4]
	sub	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_orinoco_unlock_irq
Lloh35:
	adrp	x1, l_.str.10@PAGE
Lloh36:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w22, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MAX_FRAME_LEN,8,3    ; @IEEE80211_MAX_FRAME_LEN
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize firmware (err = %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Incompatible firmware, aborting\n"

l_.str.2:                               ; @.str.2
	.asciz	"Ad-hoc demo mode supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"IEEE standard IBSS ad-hoc mode supported\n"

l_.str.4:                               ; @.str.4
	.asciz	"WEP supported, %s-bit key\n"

l_.str.5:                               ; @.str.5
	.asciz	"104"

l_.str.6:                               ; @.str.6
	.asciz	"40"

l_.str.7:                               ; @.str.7
	.asciz	"WPA-PSK supported\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to setup MIC crypto algorithm. Disabling WPA support\n"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to allocate NIC buffer!\n"

	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_ORINOCO_ALG_NONE,4,2           ; @ORINOCO_ALG_NONE
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.10:                              ; @.str.10
	.asciz	"Ready\n"

.subsections_via_symbols
