	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105pqrs_reset_cmd
_sja1105pqrs_reset_cmd:                 ## @sja1105pqrs_reset_cmd
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r13
	movq	(%rax), %r12
	movq	_SJA1105_SIZE_RESET_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	cmpq	$0, 48(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_2:
	cmpq	$0, 40(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_4:
	cmpq	$0, 32(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_6:
	cmpq	$0, 24(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_8:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_10:
	cmpq	$0, 8(%rbx)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_12:
	cmpq	$0, (%rbx)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
LBB0_14:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sja1105pqrs_reset_cmd_pack
	movq	_SPI_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	_SJA1105_SIZE_RESET_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_sja1105_spi_send_packed_buf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1105_SIZE_RESET_CMD,4,2     ## @SJA1105_SIZE_RESET_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Main reset for all functional modules requested\n"

L_.str.1:                               ## @.str.1
	.asciz	"Chip configuration reset requested\n"

L_.str.2:                               ## @.str.2
	.asciz	"Clock and reset control logic reset requested\n"

L_.str.3:                               ## @.str.3
	.asciz	"OTP read cycle for reading product config settings requested\n"

L_.str.4:                               ## @.str.4
	.asciz	"Warm reset requested\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cold reset requested\n"

L_.str.6:                               ## @.str.6
	.asciz	"Power-on reset requested\n"

	.comm	_SPI_WRITE,4,2                  ## @SPI_WRITE
	.no_dead_strip	_sja1105pqrs_reset_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105pqrs_reset_cmd
_sja1105pqrs_reset_cmd:                 ; @sja1105pqrs_reset_cmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldp	x9, x8, [x0]
	ldr	x23, [x8]
	ldr	x22, [x9]
Lloh3:
	adrp	x24, _SJA1105_SIZE_RESET_CMD@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SJA1105_SIZE_RESET_CMD@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x1, #48]
	cbz	x8, LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
LBB0_2:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
LBB0_4:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_6
; %bb.5:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
LBB0_6:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
LBB0_8:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
; %bb.9:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
LBB0_10:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
LBB0_12:
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.13:
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	bl	_sja1105pqrs_reset_cmd_pack
Lloh21:
	adrp	x8, _SPI_WRITE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SPI_WRITE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x23]
	ldr	w4, [x24]
	mov	x0, x19
	mov	x3, x21
	bl	_sja1105_spi_send_packed_buf
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1105_SIZE_RESET_CMD,4,2     ; @SJA1105_SIZE_RESET_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Main reset for all functional modules requested\n"

l_.str.1:                               ; @.str.1
	.asciz	"Chip configuration reset requested\n"

l_.str.2:                               ; @.str.2
	.asciz	"Clock and reset control logic reset requested\n"

l_.str.3:                               ; @.str.3
	.asciz	"OTP read cycle for reading product config settings requested\n"

l_.str.4:                               ; @.str.4
	.asciz	"Warm reset requested\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cold reset requested\n"

l_.str.6:                               ; @.str.6
	.asciz	"Power-on reset requested\n"

	.comm	_SPI_WRITE,4,2                  ; @SPI_WRITE
	.no_dead_strip	_sja1105pqrs_reset_cmd
.subsections_via_symbols
