	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function al_serdes_detach
_al_serdes_detach:                      ## @al_serdes_detach
	.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
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	_al_serdes_spec@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_bus_release_resources
	movq	_alpine_serdes_eth_group_mode@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_nitems
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	$4, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_mtx_destroy
	movq	(%r14), %rdi
	movl	$0, -4(%rdi,%rbx)
	incq	%r15
	callq	_nitems
	cltq
	addq	$8, %rbx
	cmpq	%rax, %r15
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_al_serdes_spec,4,2             ## @al_serdes_spec
	.comm	_alpine_serdes_eth_group_mode,8,3 ## @alpine_serdes_eth_group_mode
	.no_dead_strip	_al_serdes_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function al_serdes_detach
_al_serdes_detach:                      ; @al_serdes_detach
	.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
	bl	_device_get_softc
	mov	x2, x0
Lloh0:
	adrp	x8, _al_serdes_spec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _al_serdes_spec@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bus_release_resources
Lloh3:
	adrp	x19, _alpine_serdes_eth_group_mode@GOTPAGE
Lloh4:
	ldr	x19, [x19, _alpine_serdes_eth_group_mode@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x20
	add	x0, x8, #4
	bl	_mtx_destroy
	ldr	x0, [x19]
	str	wzr, [x0, x20]
	add	x21, x21, #1
	bl	_nitems
	add	x20, x20, #8
	cmp	x21, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #0
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_al_serdes_spec,4,2             ; @al_serdes_spec
	.comm	_alpine_serdes_eth_group_mode,8,3 ; @alpine_serdes_eth_group_mode
	.no_dead_strip	_al_serdes_detach
.subsections_via_symbols
