	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsg_add_command
_bsg_add_command:                       ## @bsg_add_command
	.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	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	4(%rdx), %eax
	movq	_BSG_FLAG_Q_AT_TAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, 24(%rdx)
	movl	16(%r15), %edx
	movl	%edx, 16(%rbx)
	movq	8(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	(%rdx), %edx
	movl	%edx, 12(%rbx)
LBB0_2:
	xorl	%r12d, %r12d
	testl	%eax, %ecx
	sete	%r12b
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	leaq	8(%r13), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_dprintk
	movq	%rbx, (%r15)
	movq	_bsg_rq_end_io@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_blk_execute_rq_nowait          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSG_FLAG_Q_AT_TAIL,4,2         ## @BSG_FLAG_Q_AT_TAIL
	.comm	_jiffies,4,2                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: queueing rq %p, bc %p\n"

	.comm	_bsg_rq_end_io,4,2              ## @bsg_rq_end_io
	.no_dead_strip	_bsg_add_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsg_add_command
_bsg_add_command:                       ; @bsg_add_command
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x9, _BSG_FLAG_Q_AT_TAIL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BSG_FLAG_Q_AT_TAIL@GOTPAGEOFF]
	ldr	w8, [x2, #4]
Lloh2:
	ldr	w9, [x9]
	str	x3, [x2, #24]
	ldr	w10, [x3, #16]
	str	w10, [x2, #16]
	ldr	x10, [x3, #8]
	cbz	x10, LBB0_2
; %bb.1:
	ldr	w10, [x10]
	str	w10, [x21, #12]
LBB0_2:
	tst	w9, w8
	cset	w23, eq
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	add	x24, x22, #4
	mov	x0, x24
	bl	_spin_lock_irq
	add	x1, x22, #8
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x24
	bl	_spin_unlock_irq
	ldr	w1, [x22]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_dprintk
	str	x21, [x19]
Lloh8:
	adrp	x8, _bsg_rq_end_io@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bsg_rq_end_io@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	x2, x19
	mov	x3, x23
	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
	b	_blk_execute_rq_nowait
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BSG_FLAG_Q_AT_TAIL,4,2         ; @BSG_FLAG_Q_AT_TAIL
	.comm	_jiffies,4,2                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: queueing rq %p, bc %p\n"

	.comm	_bsg_rq_end_io,4,2              ; @bsg_rq_end_io
	.no_dead_strip	_bsg_add_command
.subsections_via_symbols
