	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_sart
_setup_sart:                            ## @setup_sart
	.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
	movq	8(%rdi), %r14
	movl	4(%rdi), %edi
	callq	_SET_DPS
	movl	%eax, %r15d
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_SMODE_V14@GOTPCREL(%rip), %rax
	movq	_SCTRL_HDMC_BOTH@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	(%rax), %cl
	movq	_S_P1_CHS_8@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -26(%rbp)
	movq	_S_P2_BFT_DEF@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -25(%rbp)
	movq	_ISAR_HIS_SARTCFG@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	%r15b, %al
	movsbl	%al, %esi
	movsbl	%cl, %edx
	leaq	-26(%rbp), %r8
	jmp	LBB0_6
LBB0_3:
	movq	_ISAR_HIS_SARTCFG@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	%r15b, %al
	movq	_SMODE_BINARY@GOTPCREL(%rip), %rcx
	movsbl	(%rcx), %edx
	movsbl	%al, %esi
	leaq	l_.str(%rip), %r8
LBB0_6:
	movq	%r14, %rdi
	movl	$2, %ecx
	jmp	LBB0_7
LBB0_2:
	movq	_ISAR_HIS_SARTCFG@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	%r15b, %al
	movq	_SMODE_DISABLE@GOTPCREL(%rip), %rcx
	movsbl	(%rcx), %edx
	movsbl	%al, %esi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_7
LBB0_4:
	movb	$0, -26(%rbp)
	movq	_ISAR_HIS_SARTCFG@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	%r15b, %al
	movq	_SMODE_HDLC@GOTPCREL(%rip), %rcx
	movsbl	(%rcx), %edx
	movsbl	%al, %esi
	leaq	-26(%rbp), %r8
	movq	%r14, %rdi
	movl	$1, %ecx
LBB0_7:
	callq	_sendmsg
LBB0_8:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movq	_ISAR_HIS_BSTREQ@GOTPCREL(%rip), %rax
	orb	(%rax), %r15b
	movsbl	%r15b, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sendmsg
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_ISAR_HIS_SARTCFG,1,0           ## @ISAR_HIS_SARTCFG
	.comm	_SMODE_DISABLE,1,0              ## @SMODE_DISABLE
	.comm	_SMODE_BINARY,1,0               ## @SMODE_BINARY
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.space	3

	.comm	_SMODE_HDLC,1,0                 ## @SMODE_HDLC
	.comm	_SMODE_V14,1,0                  ## @SMODE_V14
	.comm	_SCTRL_HDMC_BOTH,1,0            ## @SCTRL_HDMC_BOTH
	.comm	_S_P1_CHS_8,1,0                 ## @S_P1_CHS_8
	.comm	_S_P2_BFT_DEF,1,0               ## @S_P2_BFT_DEF
	.comm	_ISAR_HIS_BSTREQ,1,0            ## @ISAR_HIS_BSTREQ
	.no_dead_strip	_setup_sart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_sart
_setup_sart:                            ; @setup_sart
	.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, #8]
	ldr	w0, [x0, #4]
	bl	_SET_DPS
	mov	x20, x0
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _SMODE_V14@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SMODE_V14@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh4:
	adrp	x9, _SCTRL_HDMC_BOTH@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SCTRL_HDMC_BOTH@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _S_P1_CHS_8@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S_P1_CHS_8@GOTPAGEOFF]
	ldrb	w9, [x9]
	strb	w9, [sp, #14]
Lloh8:
	adrp	x9, _S_P2_BFT_DEF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _S_P2_BFT_DEF@GOTPAGEOFF]
	ldrb	w9, [x9]
	strb	w9, [sp, #15]
Lloh10:
	adrp	x9, _ISAR_HIS_SARTCFG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ISAR_HIS_SARTCFG@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w9, w9, w20
	sxtb	w1, w9
	sxtb	w2, w8
	add	x4, sp, #14
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _ISAR_HIS_SARTCFG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ISAR_HIS_SARTCFG@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w20
Lloh14:
	adrp	x9, _SMODE_BINARY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SMODE_BINARY@GOTPAGEOFF]
Lloh16:
	ldrsb	w2, [x9]
	sxtb	w1, w8
Lloh17:
	adrp	x4, l_.str@PAGE
Lloh18:
	add	x4, x4, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	mov	w3, #2
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x8, _ISAR_HIS_SARTCFG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ISAR_HIS_SARTCFG@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w20
Lloh21:
	adrp	x9, _SMODE_DISABLE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SMODE_DISABLE@GOTPAGEOFF]
Lloh23:
	ldrsb	w2, [x9]
	sxtb	w1, w8
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	b	LBB0_7
LBB0_6:
	strb	wzr, [sp, #14]
Lloh24:
	adrp	x8, _ISAR_HIS_SARTCFG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ISAR_HIS_SARTCFG@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w20
Lloh26:
	adrp	x9, _SMODE_HDLC@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SMODE_HDLC@GOTPAGEOFF]
Lloh28:
	ldrsb	w2, [x9]
	sxtb	w1, w8
	add	x4, sp, #14
	mov	x0, x19
	mov	w3, #1
LBB0_7:
	bl	_sendmsg
LBB0_8:
	mov	w0, #1000
	bl	_udelay
Lloh29:
	adrp	x8, _ISAR_HIS_BSTREQ@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ISAR_HIS_BSTREQ@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w20
	sxtb	w1, w8
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_sendmsg
	mov	w0, #1000
	bl	_udelay
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_ISAR_HIS_SARTCFG,1,0           ; @ISAR_HIS_SARTCFG
	.comm	_SMODE_DISABLE,1,0              ; @SMODE_DISABLE
	.comm	_SMODE_BINARY,1,0               ; @SMODE_BINARY
l_.str:                                 ; @.str
	.space	3

	.comm	_SMODE_HDLC,1,0                 ; @SMODE_HDLC
	.comm	_SMODE_V14,1,0                  ; @SMODE_V14
	.comm	_SCTRL_HDMC_BOTH,1,0            ; @SCTRL_HDMC_BOTH
	.comm	_S_P1_CHS_8,1,0                 ; @S_P1_CHS_8
	.comm	_S_P2_BFT_DEF,1,0               ; @S_P2_BFT_DEF
	.comm	_ISAR_HIS_BSTREQ,1,0            ; @ISAR_HIS_BSTREQ
	.no_dead_strip	_setup_sart
.subsections_via_symbols
