	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_check_carrier
_stb0899_check_carrier:                 ## @stb0899_check_carrier
	.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, %rbx
	movl	8(%rdi), %edi
	callq	_msleep
	movq	_STB0899_CFD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movq	_CFD_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_STB0899_SETFIELD_VAL
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_DSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_CARRIER_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_STB0899_GETFIELD
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_CARRIEROK@GOTPCREL(%rip), %rax
	cmoveq	_NOCARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movl	4(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STB0899_CFD,4,2                ## @STB0899_CFD
	.comm	_CFD_ON,4,2                     ## @CFD_ON
	.comm	_STB0899_DSTATUS,4,2            ## @STB0899_DSTATUS
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--------------------> STB0899_DSTATUS=[0x%02x]"

	.comm	_CARRIER_FOUND,4,2              ## @CARRIER_FOUND
	.comm	_CARRIEROK,4,2                  ## @CARRIEROK
L_.str.1:                               ## @.str.1
	.asciz	"-------------> CARRIEROK !"

	.comm	_NOCARRIER,4,2                  ## @NOCARRIER
L_.str.2:                               ## @.str.2
	.asciz	"-------------> NOCARRIER !"

	.no_dead_strip	_stb0899_check_carrier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_check_carrier
_stb0899_check_carrier:                 ; @stb0899_check_carrier
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w0, [x0, #8]
	bl	_msleep
Lloh0:
	adrp	x21, _STB0899_CFD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STB0899_CFD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
Lloh2:
	adrp	x8, _CFD_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CFD_ON@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #1
	bl	_STB0899_SETFIELD_VAL
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_stb0899_write_reg
Lloh5:
	adrp	x8, _STB0899_DSTATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STB0899_DSTATUS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
	ldr	w0, [x19]
Lloh8:
	adrp	x21, _FE_DEBUG@GOTPAGE
Lloh9:
	ldr	x21, [x21, _FE_DEBUG@GOTPAGEOFF]
	ldr	w1, [x21]
	str	x20, [sp]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh12:
	adrp	x8, _CARRIER_FOUND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CARRIER_FOUND@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_STB0899_GETFIELD
Lloh15:
	adrp	x8, l_.str.1@PAGE
Lloh16:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh17:
	adrp	x9, l_.str.2@PAGE
Lloh18:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh19:
	adrp	x10, _NOCARRIER@GOTPAGE
Lloh20:
	ldr	x10, [x10, _NOCARRIER@GOTPAGEOFF]
Lloh21:
	adrp	x11, _CARRIEROK@GOTPAGE
Lloh22:
	ldr	x11, [x11, _CARRIEROK@GOTPAGEOFF]
	cmp	x0, #0
	csel	x3, x9, x8, eq
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w0, [x19]
	ldr	w1, [x21]
	mov	w2, #1
	bl	_dprintk
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STB0899_CFD,4,2                ; @STB0899_CFD
	.comm	_CFD_ON,4,2                     ; @CFD_ON
	.comm	_STB0899_DSTATUS,4,2            ; @STB0899_DSTATUS
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--------------------> STB0899_DSTATUS=[0x%02x]"

	.comm	_CARRIER_FOUND,4,2              ; @CARRIER_FOUND
	.comm	_CARRIEROK,4,2                  ; @CARRIEROK
l_.str.1:                               ; @.str.1
	.asciz	"-------------> CARRIEROK !"

	.comm	_NOCARRIER,4,2                  ; @NOCARRIER
l_.str.2:                               ; @.str.2
	.asciz	"-------------> NOCARRIER !"

	.no_dead_strip	_stb0899_check_carrier
.subsections_via_symbols
