	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm8211_start
_adm8211_start:                         ## @adm8211_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	callq	_adm8211_hw_reset
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_err
	jmp	LBB0_7
LBB0_2:
	movq	%r14, %rdi
	callq	_adm8211_init_rings
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wiphy_err
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_adm8211_hw_init
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_adm8211_rf_set_channel
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	_adm8211_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wiphy_err
	jmp	LBB0_7
LBB0_6:
	movq	_ADM8211_IER_NIE@GOTPCREL(%rip), %rax
	movq	_ADM8211_IER_AIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_ADM8211_IER_RCIE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_ADM8211_IER_TCIE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_IER@GOTPCREL(%rip), %rax
	movq	_ADM8211_IER_TDUIE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_ADM8211_IER_GPTIE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_ADM8211_CSR_WRITE
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_adm8211_update_mode
	movq	_RDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_ADM8211_CSR_WRITE
	movq	%r14, %rdi
	movl	$100, %esi
	movl	$10, %edx
	callq	_adm8211_set_interval
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hardware reset failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize rings\n"

	.comm	_adm8211_interrupt,4,2          ## @adm8211_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.2:                               ## @.str.2
	.asciz	"adm8211"

L_.str.3:                               ## @.str.3
	.asciz	"failed to register IRQ handler\n"

	.comm	_IER,4,2                        ## @IER
	.comm	_ADM8211_IER_NIE,4,2            ## @ADM8211_IER_NIE
	.comm	_ADM8211_IER_AIE,4,2            ## @ADM8211_IER_AIE
	.comm	_ADM8211_IER_RCIE,4,2           ## @ADM8211_IER_RCIE
	.comm	_ADM8211_IER_TCIE,4,2           ## @ADM8211_IER_TCIE
	.comm	_ADM8211_IER_TDUIE,4,2          ## @ADM8211_IER_TDUIE
	.comm	_ADM8211_IER_GPTIE,4,2          ## @ADM8211_IER_GPTIE
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ## @NL80211_IFTYPE_MONITOR
	.comm	_RDR,4,2                        ## @RDR
	.no_dead_strip	_adm8211_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm8211_start
_adm8211_start:                         ; @adm8211_start
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_adm8211_hw_reset
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_adm8211_init_rings
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wiphy_err
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_adm8211_hw_init
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_adm8211_rf_set_channel
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
Lloh4:
	adrp	x8, _adm8211_interrupt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _adm8211_interrupt@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wiphy_err
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _IER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IER@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _ADM8211_IER_NIE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ADM8211_IER_NIE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _ADM8211_IER_AIE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ADM8211_IER_AIE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _ADM8211_IER_RCIE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ADM8211_IER_RCIE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _ADM8211_IER_TCIE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ADM8211_IER_TCIE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _ADM8211_IER_TDUIE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ADM8211_IER_TDUIE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _ADM8211_IER_GPTIE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ADM8211_IER_GPTIE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_ADM8211_CSR_WRITE
Lloh35:
	adrp	x8, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x19
	bl	_adm8211_update_mode
Lloh38:
	adrp	x8, _RDR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RDR@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_ADM8211_CSR_WRITE
	mov	x0, x19
	mov	w1, #100
	mov	w2, #10
	bl	_adm8211_set_interval
LBB0_7:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hardware reset failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize rings\n"

	.comm	_adm8211_interrupt,4,2          ; @adm8211_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.2:                               ; @.str.2
	.asciz	"adm8211"

l_.str.3:                               ; @.str.3
	.asciz	"failed to register IRQ handler\n"

	.comm	_IER,4,2                        ; @IER
	.comm	_ADM8211_IER_NIE,4,2            ; @ADM8211_IER_NIE
	.comm	_ADM8211_IER_AIE,4,2            ; @ADM8211_IER_AIE
	.comm	_ADM8211_IER_RCIE,4,2           ; @ADM8211_IER_RCIE
	.comm	_ADM8211_IER_TCIE,4,2           ; @ADM8211_IER_TCIE
	.comm	_ADM8211_IER_TDUIE,4,2          ; @ADM8211_IER_TDUIE
	.comm	_ADM8211_IER_GPTIE,4,2          ; @ADM8211_IER_GPTIE
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ; @NL80211_IFTYPE_MONITOR
	.comm	_RDR,4,2                        ; @RDR
	.no_dead_strip	_adm8211_start
.subsections_via_symbols
