	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm8211_add_interface
_adm8211_add_interface:                 ## @adm8211_add_interface
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	cmpl	$128, (%rsi)
	jne	LBB0_3
## %bb.2:
	movq	%rdi, %r14
	movq	$128, (%rax)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ADM8211_IDLE
	movq	_PAR0@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ADM8211_CSR_WRITE
	movq	_PAR1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%r15), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ADM8211_CSR_WRITE
	movq	%r14, %rdi
	callq	_adm8211_update_mode
	xorl	%eax, %eax
	callq	_ADM8211_RESTORE
	jmp	LBB0_4
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ## @NL80211_IFTYPE_MONITOR
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_PAR0,4,2                       ## @PAR0
	.comm	_PAR1,4,2                       ## @PAR1
	.no_dead_strip	_adm8211_add_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm8211_add_interface
_adm8211_add_interface:                 ; @adm8211_add_interface
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	w9, [x1]
	cmp	w9, #128
	b.ne	LBB0_3
; %bb.2:
	mov	x19, x0
	mov	w9, #128
	str	x9, [x8]
	bl	_ADM8211_IDLE
Lloh3:
	adrp	x8, _PAR0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAR0@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	x0, x21
	bl	_ADM8211_CSR_WRITE
Lloh6:
	adrp	x8, _PAR1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAR1@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x21
	bl	_ADM8211_CSR_WRITE
	mov	x0, x19
	bl	_adm8211_update_mode
	bl	_ADM8211_RESTORE
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ; @NL80211_IFTYPE_MONITOR
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_PAR0,4,2                       ; @PAR0
	.comm	_PAR1,4,2                       ; @PAR1
	.no_dead_strip	_adm8211_add_interface
.subsections_via_symbols
