	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmfe_program_DM9801
_dmfe_program_DM9801:                   ## @dmfe_program_DM9801
	.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, %rbx
	movq	_HPNA_NoiseFloor@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_1
## %bb.2:
	cmpl	$47361, %esi                    ## imm = 0xB901
	je	LBB0_5
LBB0_3:
	cmpl	$47360, %esi                    ## imm = 0xB900
	jne	LBB0_6
## %bb.4:
	orb	$16, 1(%rbx)
	movl	12(%rbx), %edi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %esi
	movl	$24, %edx
	callq	_dmfe_phy_read
	addl	(%r12), %eax
	movzbl	%al, %r14d
	orl	$61440, %r14d                   ## imm = 0xF000
	movl	12(%rbx), %edi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %esi
	movl	$17, %edx
	callq	_dmfe_phy_read
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_1:
	movq	_DM9801_NOISE_FLOOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	cmpl	$47361, %esi                    ## imm = 0xB901
	jne	LBB0_3
LBB0_5:
	movl	12(%rbx), %edi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %esi
	movl	$25, %edx
	callq	_dmfe_phy_read
	movl	%eax, %r14d
	andl	$65280, %r14d                   ## imm = 0xFF00
	addl	(%r12), %r14d
	movl	12(%rbx), %edi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %esi
	movl	$17, %edx
	callq	_dmfe_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65520, %eax                    ## imm = 0xFFF0
	movl	(%r12), %ecx
	leal	(%rcx,%rax), %r15d
	addl	$3, %r15d
	jmp	LBB0_7
LBB0_6:
	orb	$16, 1(%rbx)
	movl	12(%rbx), %edi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %esi
	movl	$25, %edx
	callq	_dmfe_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$65280, %eax                    ## imm = 0xFF00
	movl	(%r12), %ecx
	leal	(%rcx,%rax), %r14d
	addl	$-5, %r14d
	movl	12(%rbx), %edi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %esi
	movl	$17, %edx
	callq	_dmfe_phy_read
	movl	%eax, %r15d
	andl	$65520, %r15d                   ## imm = 0xFFF0
	addl	(%r12), %r15d
LBB0_7:
	movl	12(%rbx), %edi
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	movl	$16, %edx
	callq	_dmfe_phy_write
	movl	12(%rbx), %edi
	movl	4(%rbx), %r8d
	movl	8(%rbx), %esi
	movl	$17, %edx
	movl	%r15d, %ecx
	callq	_dmfe_phy_write
	movl	12(%rbx), %edi
	movl	4(%rbx), %r8d
	movl	8(%rbx), %esi
	movl	$25, %edx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmfe_phy_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HPNA_NoiseFloor,4,2            ## @HPNA_NoiseFloor
	.comm	_DM9801_NOISE_FLOOR,4,2         ## @DM9801_NOISE_FLOOR
	.no_dead_strip	_dmfe_program_DM9801
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmfe_program_DM9801
_dmfe_program_DM9801:                   ; @dmfe_program_DM9801
	.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
Lloh0:
	adrp	x21, _HPNA_NoiseFloor@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HPNA_NoiseFloor@GOTPAGEOFF]
	ldr	w8, [x21]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _DM9801_NOISE_FLOOR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DM9801_NOISE_FLOOR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_2:
	mov	w8, #47361
	cmp	w1, w8
	b.eq	LBB0_5
; %bb.3:
	mov	w8, #47360
	cmp	w1, w8
	b.ne	LBB0_6
; %bb.4:
	ldp	w8, w3, [x19]
	orr	w8, w8, #0x1000
	str	w8, [x19]
	ldp	w1, w0, [x19, #8]
	mov	w2, #24
	bl	_dmfe_phy_read
	ldr	w8, [x21]
	add	w8, w8, w0
	mov	w20, #61440
	bfxil	w20, w8, #0, #8
	ldp	w1, w0, [x19, #8]
	ldr	w3, [x19, #4]
	mov	w2, #17
	bl	_dmfe_phy_read
	mov	x21, x0
	b	LBB0_7
LBB0_5:
	ldp	w1, w0, [x19, #8]
	ldr	w3, [x19, #4]
	mov	w2, #25
	bl	_dmfe_phy_read
	and	w8, w0, #0xff00
	ldr	w9, [x21]
	add	w20, w8, w9
	ldp	w1, w0, [x19, #8]
	ldr	w3, [x19, #4]
	mov	w2, #17
	bl	_dmfe_phy_read
	and	w8, w0, #0xfff0
	ldr	w9, [x21]
	add	w8, w9, w8
	add	w21, w8, #3
	b	LBB0_7
LBB0_6:
	ldp	w8, w3, [x19]
	orr	w8, w8, #0x1000
	str	w8, [x19]
	ldp	w1, w0, [x19, #8]
	mov	w2, #25
	bl	_dmfe_phy_read
	and	w8, w0, #0xff00
	ldr	w9, [x21]
	add	w8, w9, w8
	sub	w20, w8, #5
	ldp	w1, w0, [x19, #8]
	ldr	w3, [x19, #4]
	mov	w2, #17
	bl	_dmfe_phy_read
	and	w8, w0, #0xfff0
	ldr	w9, [x21]
	add	w21, w8, w9
LBB0_7:
	ldp	w1, w0, [x19, #8]
	ldp	w3, w4, [x19]
	mov	w2, #16
	bl	_dmfe_phy_write
	ldp	w1, w0, [x19, #8]
	ldr	w4, [x19, #4]
	mov	w2, #17
	mov	x3, x21
	bl	_dmfe_phy_write
	ldp	w1, w0, [x19, #8]
	ldr	w4, [x19, #4]
	mov	w2, #25
	mov	x3, 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
	b	_dmfe_phy_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HPNA_NoiseFloor,4,2            ; @HPNA_NoiseFloor
	.comm	_DM9801_NOISE_FLOOR,4,2         ; @DM9801_NOISE_FLOOR
	.no_dead_strip	_dmfe_program_DM9801
.subsections_via_symbols
