	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orinoco_change_vif
_orinoco_change_vif:                    ## @orinoco_change_vif
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	callq	_wiphy_priv
	movq	%rax, %r12
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_orinoco_lock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_2:
	cmpl	$128, %r14d
	je	LBB0_7
## %bb.3:
	cmpl	$129, %r14d
	je	LBB0_8
## %bb.4:
	cmpl	$130, %r14d
	jne	LBB0_11
## %bb.5:
	cmpl	$0, 12(%r12)
	jne	LBB0_7
## %bb.6:
	cmpl	$0, 8(%r12)
	jne	LBB0_7
	jmp	LBB0_11
LBB0_8:
	cmpl	$0, 4(%r12)
	je	LBB0_7
## %bb.9:
	movq	_force_monitor@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_wiphy_warn
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.12:
	negl	%ebx
	jmp	LBB0_13
LBB0_7:
	movl	%r14d, (%r12)
	movq	%r12, %rdi
	callq	_set_port_type
	movq	%r12, %rdi
	callq	_orinoco_commit
	movl	%eax, %ebx
LBB0_13:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_orinoco_unlock
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_force_monitor,4,2              ## @force_monitor
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Monitor mode support is buggy in this firmware, not enabling\n"

	.no_dead_strip	_orinoco_change_vif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orinoco_change_vif
_orinoco_change_vif:                    ; @orinoco_change_vif
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x0
	bl	_wiphy_priv
	mov	x19, x0
	add	x1, sp, #8
	bl	_orinoco_lock
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_2:
	cmp	w20, #128
	b.eq	LBB0_12
; %bb.3:
	cmp	w20, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w20, #130
	b.ne	LBB0_10
; %bb.5:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_12
; %bb.6:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_12
	b	LBB0_10
LBB0_7:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
; %bb.8:
Lloh3:
	adrp	x8, _force_monitor@GOTPAGE
Lloh4:
	ldr	x8, [x8, _force_monitor@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
; %bb.9:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_wiphy_warn
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.11:
	neg	w20, w8
	b	LBB0_13
LBB0_12:
	str	w20, [x19]
	mov	x0, x19
	bl	_set_port_type
	mov	x0, x19
	bl	_orinoco_commit
	mov	x20, x0
LBB0_13:
	add	x1, sp, #8
	mov	x0, x19
	bl	_orinoco_unlock
LBB0_14:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_force_monitor,4,2              ; @force_monitor
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Monitor mode support is buggy in this firmware, not enabling\n"

	.no_dead_strip	_orinoco_change_vif
.subsections_via_symbols
