	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_if_add                 ## -- Begin function orinoco_if_add
	.p2align	4, 0x90
_orinoco_if_add:                        ## @orinoco_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	%rcx, %r15
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_priv_to_wiphy
	movq	%rax, %r13
	movl	$16, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%r13, 8(%rax)
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%rax, 64(%rbx)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_orinoco_handler_def@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	testq	%r15, %r15
	jne	LBB0_4
## %bb.3:
	movq	_orinoco_netdev_ops@GOTPCREL(%rip), %r15
LBB0_4:
	movq	%r15, 32(%rbx)
	movq	_ENCAPS_OVERHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movl	24(%rbx), %edi
	movl	(%r13), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%r12, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movq	_ORINOCO_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_ORINOCO_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_SET_NETDEV_DEV
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_free_netdev
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, 8(%r14)
	movl	(%r14), %edi
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_HZ,4,2                         ## @HZ
	.comm	_orinoco_handler_def,4,2        ## @orinoco_handler_def
	.comm	_orinoco_netdev_ops,4,2         ## @orinoco_netdev_ops
	.comm	_ENCAPS_OVERHEAD,4,2            ## @ENCAPS_OVERHEAD
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ORINOCO_MIN_MTU,4,2            ## @ORINOCO_MIN_MTU
	.comm	_ORINOCO_MAX_MTU,4,2            ## @ORINOCO_MAX_MTU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registered interface %s.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_if_add                 ; -- Begin function orinoco_if_add
	.p2align	2
_orinoco_if_add:                        ; @orinoco_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	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_priv_to_wiphy
	mov	x23, x0
	mov	w0, #16
	bl	_alloc_etherdev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	str	x23, [x0, #8]
Lloh0:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
	str	x0, [x20, #64]
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #56]
Lloh6:
	adrp	x8, _orinoco_handler_def@GOTPAGE
Lloh7:
	ldr	x8, [x8, _orinoco_handler_def@GOTPAGEOFF]
	str	x8, [x20, #48]
Lloh8:
	adrp	x8, _orinoco_netdev_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _orinoco_netdev_ops@GOTPAGEOFF]
	cmp	x24, #0
	csel	x8, x8, x24, eq
	str	x8, [x20, #32]
Lloh10:
	adrp	x8, _ENCAPS_OVERHEAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENCAPS_OVERHEAD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	mov	x0, x20
	bl	_netif_carrier_off
	ldr	w0, [x20, #24]
	ldr	w1, [x23]
Lloh13:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_memcpy
	str	x22, [x20]
	str	w21, [x20, #8]
Lloh16:
	adrp	x8, _ORINOCO_MIN_MTU@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ORINOCO_MIN_MTU@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _ORINOCO_MAX_MTU@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ORINOCO_MAX_MTU@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	bl	_register_netdev
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_free_netdev
	b	LBB0_5
LBB0_3:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	str	x20, [x19, #8]
	ldr	w0, [x19]
	ldr	w2, [x20, #12]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_5:
	mov	x0, x21
	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	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_HZ,4,2                         ; @HZ
	.comm	_orinoco_handler_def,4,2        ; @orinoco_handler_def
	.comm	_orinoco_netdev_ops,4,2         ; @orinoco_netdev_ops
	.comm	_ENCAPS_OVERHEAD,4,2            ; @ENCAPS_OVERHEAD
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ORINOCO_MIN_MTU,4,2            ; @ORINOCO_MIN_MTU
	.comm	_ORINOCO_MAX_MTU,4,2            ; @ORINOCO_MAX_MTU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Registered interface %s.\n"

.subsections_via_symbols
