	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_power_up_tx
_adv748x_power_up_tx:                   ## @adv748x_power_up_tx
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	callq	_is_txa
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_ADV748X_PAGE_TXB@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ADV748X_PAGE_TXA@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movl	$0, -36(%rbp)
	movl	$128, %ecx
	orl	(%r15), %ecx
	leaq	-36(%rbp), %r12
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movl	$160, %ecx
	orl	(%r15), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_adv748x_write_check
	cmpq	%r14, 8(%r15)
	je	LBB0_4
## %bb.5:
	leaq	-36(%rbp), %r8
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$210, %edx
	movl	$64, %ecx
	jmp	LBB0_6
LBB0_4:
	leaq	-36(%rbp), %r12
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$219, %edx
	movl	$16, %ecx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$214, %edx
	movl	$7, %ecx
	movq	%r12, %r8
LBB0_6:
	callq	_adv748x_write_check
	leaq	-36(%rbp), %r12
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$196, %edx
	movl	$10, %ecx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$113, %edx
	movl	$51, %ecx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$114, %edx
	movl	$17, %ecx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$240, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$49, %edx
	movl	$130, %ecx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$30, %edx
	movl	$64, %ecx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$218, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$2500, %esi                     ## imm = 0x9C4
	callq	_usleep_range
	movl	(%r15), %ecx
	orl	$32, %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$193, %edx
	movl	$43, %ecx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$49, %edx
	movl	$128, %ecx
	movq	%r12, %r8
	callq	_adv748x_write_check
	movl	-36(%rbp), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV748X_PAGE_TXA,4,2           ## @ADV748X_PAGE_TXA
	.comm	_ADV748X_PAGE_TXB,4,2           ## @ADV748X_PAGE_TXB
	.no_dead_strip	_adv748x_power_up_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv748x_power_up_tx
_adv748x_power_up_tx:                   ; @adv748x_power_up_tx
	.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	x21, x0
	ldr	x19, [x0, #16]
	bl	_is_txa
Lloh0:
	adrp	x8, _ADV748X_PAGE_TXA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV748X_PAGE_TXA@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ADV748X_PAGE_TXB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADV748X_PAGE_TXB@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	str	wzr, [sp, #12]
	ldr	w8, [x21]
	orr	w3, w8, #0x80
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_adv748x_write_check
	ldr	w8, [x21]
	mov	w9, #160
	orr	w3, w8, w9
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_adv748x_write_check
	ldr	x8, [x21, #8]
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	cmp	x8, x19
	b.eq	LBB0_2
; %bb.1:
	mov	w2, #210
	mov	w3, #64
	b	LBB0_3
LBB0_2:
	mov	w2, #219
	mov	w3, #16
	bl	_adv748x_write_check
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #214
	mov	w3, #7
LBB0_3:
	bl	_adv748x_write_check
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #196
	mov	w3, #10
	bl	_adv748x_write_check
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #113
	mov	w3, #51
	bl	_adv748x_write_check
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #114
	mov	w3, #17
	bl	_adv748x_write_check
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #240
	mov	w3, #0
	bl	_adv748x_write_check
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #49
	mov	w3, #130
	bl	_adv748x_write_check
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #30
	mov	w3, #64
	bl	_adv748x_write_check
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #218
	mov	w3, #1
	bl	_adv748x_write_check
	mov	w0, #2000
	mov	w1, #2500
	bl	_usleep_range
	ldr	w8, [x21]
	orr	w3, w8, #0x20
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_adv748x_write_check
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #193
	mov	w3, #43
	bl	_adv748x_write_check
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #49
	mov	w3, #128
	bl	_adv748x_write_check
	ldr	w0, [sp, #12]
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV748X_PAGE_TXA,4,2           ; @ADV748X_PAGE_TXA
	.comm	_ADV748X_PAGE_TXB,4,2           ; @ADV748X_PAGE_TXB
	.no_dead_strip	_adv748x_power_up_tx
.subsections_via_symbols
