	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm8211_hw_reset
_adm8211_hw_reset:                      ## @adm8211_hw_reset
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	_FRCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ADM8211_CSR_WRITE
	movq	_PAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %r13d
	movl	(%rbx), %edi
	movq	_ADM8211_PAR_SWR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ADM8211_CSR_WRITE
	movl	(%rbx), %edi
	callq	_ADM8211_CSR_READ
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.1:
	movl	$101, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %r14d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$50, %edi
	callq	_msleep
	movl	(%rbx), %edi
	callq	_ADM8211_CSR_READ
	decl	%r14d
	testl	%eax, (%r15)
	jne	LBB0_2
## %bb.4:
	cmpl	$1, %r14d
	jg	LBB0_6
LBB0_5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_ADM8211_CSR_WRITE
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	_ADM8211_REV_BA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	(%r12), %rcx
	movq	_ADM8211_RFMD2958_RF3000_CONTROL_POWER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.8:
	movq	_ADM8211_RFMD2958@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
LBB0_10:
	movq	_ADM8211_REV_CA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	_CSR_TEST1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %esi
	andl	$-49, %esi
	jmp	LBB0_12
LBB0_9:
	movq	_CSR_TEST1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %esi
	orl	$48, %esi
LBB0_12:
	movq	_CSR_TEST1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ADM8211_CSR_WRITE
LBB0_13:
	movq	_FRCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_ADM8211_CSR_WRITE
	movq	_CSR_TEST0@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ADM8211_CSR_READ
	movq	_ADM8211_CSR_TEST0_EPRLD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ADM8211_CSR_WRITE
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_adm8211_clear_sram
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRCTL,4,2                      ## @FRCTL
	.comm	_PAR,4,2                        ## @PAR
	.comm	_ADM8211_PAR_SWR,4,2            ## @ADM8211_PAR_SWR
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ADM8211_REV_BA,8,3             ## @ADM8211_REV_BA
	.comm	_ADM8211_RFMD2958_RF3000_CONTROL_POWER,8,3 ## @ADM8211_RFMD2958_RF3000_CONTROL_POWER
	.comm	_ADM8211_RFMD2958,8,3           ## @ADM8211_RFMD2958
	.comm	_CSR_TEST1,4,2                  ## @CSR_TEST1
	.comm	_ADM8211_REV_CA,8,3             ## @ADM8211_REV_CA
	.comm	_CSR_TEST0,4,2                  ## @CSR_TEST0
	.comm	_ADM8211_CSR_TEST0_EPRLD,4,2    ## @ADM8211_CSR_TEST0_EPRLD
	.no_dead_strip	_adm8211_hw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm8211_hw_reset
_adm8211_hw_reset:                      ; @adm8211_hw_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x21, _FRCTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FRCTL@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_ADM8211_CSR_WRITE
Lloh2:
	adrp	x23, _PAR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PAR@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	mov	x20, x0
	ldr	w0, [x23]
Lloh4:
	adrp	x24, _ADM8211_PAR_SWR@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ADM8211_PAR_SWR@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_ADM8211_CSR_WRITE
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	mov	w25, #101
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w25, w25, #1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #50
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	and	w8, w8, w0
	cbnz	w8, LBB0_2
; %bb.4:
	cmp	w25, #1
	b.gt	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_6:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_ADM8211_CSR_WRITE
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _ADM8211_REV_BA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADM8211_REV_BA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	x9, [x22]
Lloh12:
	adrp	x10, _ADM8211_RFMD2958_RF3000_CONTROL_POWER@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ADM8211_RFMD2958_RF3000_CONTROL_POWER@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_11
; %bb.8:
Lloh15:
	adrp	x10, _ADM8211_RFMD2958@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ADM8211_RFMD2958@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_11
LBB0_9:
Lloh18:
	adrp	x9, _ADM8211_REV_CA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ADM8211_REV_CA@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:
Lloh21:
	adrp	x8, _CSR_TEST1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CSR_TEST1@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_ADM8211_CSR_READ
	and	w1, w0, #0xffffffcf
	b	LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, _CSR_TEST1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CSR_TEST1@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_ADM8211_CSR_READ
	orr	w1, w0, #0x30
LBB0_12:
Lloh27:
	adrp	x8, _CSR_TEST1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CSR_TEST1@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_ADM8211_CSR_WRITE
LBB0_13:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_ADM8211_CSR_WRITE
Lloh30:
	adrp	x20, _CSR_TEST0@GOTPAGE
Lloh31:
	ldr	x20, [x20, _CSR_TEST0@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ADM8211_CSR_READ
Lloh32:
	adrp	x8, _ADM8211_CSR_TEST0_EPRLD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ADM8211_CSR_TEST0_EPRLD@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x20]
	bl	_ADM8211_CSR_WRITE
	mov	x0, x19
	bl	_adm8211_clear_sram
	mov	w0, #0
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_FRCTL,4,2                      ; @FRCTL
	.comm	_PAR,4,2                        ; @PAR
	.comm	_ADM8211_PAR_SWR,4,2            ; @ADM8211_PAR_SWR
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ADM8211_REV_BA,8,3             ; @ADM8211_REV_BA
	.comm	_ADM8211_RFMD2958_RF3000_CONTROL_POWER,8,3 ; @ADM8211_RFMD2958_RF3000_CONTROL_POWER
	.comm	_ADM8211_RFMD2958,8,3           ; @ADM8211_RFMD2958
	.comm	_CSR_TEST1,4,2                  ; @CSR_TEST1
	.comm	_ADM8211_REV_CA,8,3             ; @ADM8211_REV_CA
	.comm	_CSR_TEST0,4,2                  ; @CSR_TEST0
	.comm	_ADM8211_CSR_TEST0_EPRLD,4,2    ; @ADM8211_CSR_TEST0_EPRLD
	.no_dead_strip	_adm8211_hw_reset
.subsections_via_symbols
