	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hermes_issue_cmd
_hermes_issue_cmd:                      ## @hermes_issue_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_CMD_BUSY_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_hermes_read_regn
	movq	_HERMES_CMD_BUSY@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	setne	%al
	je	LBB0_5
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.2:
	decl	%r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hermes_read_regn
	addl	$-1, %r15d
	setb	%cl
	testl	%eax, (%r12)
	setne	%al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	jne	LBB0_3
LBB0_5:
	testb	%al, %al
	je	LBB0_7
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movq	_PARAM2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_hermes_write_regn
	movq	_PARAM1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_hermes_write_regn
	movq	_PARAM0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_hermes_write_regn
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_hermes_write_regn
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_BUSY_TIMEOUT,4,2           ## @CMD_BUSY_TIMEOUT
	.comm	_CMD,4,2                        ## @CMD
	.comm	_HERMES_CMD_BUSY,4,2            ## @HERMES_CMD_BUSY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_PARAM2,4,2                     ## @PARAM2
	.comm	_PARAM1,4,2                     ## @PARAM1
	.comm	_PARAM0,4,2                     ## @PARAM0
	.no_dead_strip	_hermes_issue_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hermes_issue_cmd
_hermes_issue_cmd:                      ; @hermes_issue_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CMD_BUSY_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_BUSY_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x24, _CMD@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CMD@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_hermes_read_regn
Lloh5:
	adrp	x25, _HERMES_CMD_BUSY@GOTPAGE
Lloh6:
	ldr	x25, [x25, _HERMES_CMD_BUSY@GOTPAGEOFF]
	ldr	w8, [x25]
	ands	w9, w8, w0
	cset	w8, ne
	cmp	w9, #0
	ccmp	w26, #0, #4, ne
	b.eq	LBB0_4
; %bb.1:
	sub	w26, w26, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x24]
	mov	x0, x20
	bl	_hermes_read_regn
	ldr	w8, [x25]
	ands	w10, w8, w0
	cset	w8, ne
	subs	w26, w26, #1
	cset	w9, hs
	cbz	w10, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w9, #0, LBB0_2
LBB0_4:
	cbz	w8, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _PARAM2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PARAM2@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_hermes_write_regn
Lloh13:
	adrp	x8, _PARAM1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PARAM1@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_hermes_write_regn
Lloh16:
	adrp	x8, _PARAM0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PARAM0@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_hermes_write_regn
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x19
	bl	_hermes_write_regn
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_BUSY_TIMEOUT,4,2           ; @CMD_BUSY_TIMEOUT
	.comm	_CMD,4,2                        ; @CMD
	.comm	_HERMES_CMD_BUSY,4,2            ; @HERMES_CMD_BUSY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_PARAM2,4,2                     ; @PARAM2
	.comm	_PARAM1,4,2                     ; @PARAM1
	.comm	_PARAM0,4,2                     ; @PARAM0
	.no_dead_strip	_hermes_issue_cmd
.subsections_via_symbols
