	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibmasm_new_command             ## -- Begin function ibmasm_new_command
	.p2align	4, 0x90
_ibmasm_new_command:                    ## @ibmasm_new_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IBMASM_CMD_MAX_BUFFER_SIZE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jb	LBB0_7
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_kzalloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r15, (%rbx)
	leaq	32(%rbx), %rdi
	callq	_kref_init
	movq	%r14, 24(%rbx)
	movq	_IBMASM_CMD_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	leaq	12(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	movq	_command_count@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_atomic_inc
	movq	%r14, %rdi
	callq	_atomic_read
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_dbg
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBMASM_CMD_MAX_BUFFER_SIZE,8,3 ## @IBMASM_CMD_MAX_BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IBMASM_CMD_PENDING,4,2         ## @IBMASM_CMD_PENDING
	.comm	_command_count,4,2              ## @command_count
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"command count: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibmasm_new_command             ; -- Begin function ibmasm_new_command
	.p2align	2
_ibmasm_new_command:                    ; @ibmasm_new_command
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _IBMASM_CMD_MAX_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBMASM_CMD_MAX_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.lo	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x20, x0
Lloh3:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_4
; %bb.3:
	str	x21, [x19]
	add	x0, x19, #32
	bl	_kref_init
	str	x20, [x19, #24]
Lloh5:
	adrp	x8, _IBMASM_CMD_PENDING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IBMASM_CMD_PENDING@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	add	x0, x19, #12
	bl	_init_waitqueue_head
	add	x0, x19, #8
	bl	_INIT_LIST_HEAD
Lloh8:
	adrp	x20, _command_count@GOTPAGE
Lloh9:
	ldr	x20, [x20, _command_count@GOTPAGEOFF]
	mov	x0, x20
	bl	_atomic_inc
	mov	x0, x20
	bl	_atomic_read
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_kfree
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IBMASM_CMD_MAX_BUFFER_SIZE,8,3 ; @IBMASM_CMD_MAX_BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IBMASM_CMD_PENDING,4,2         ; @IBMASM_CMD_PENDING
	.comm	_command_count,4,2              ; @command_count
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"command count: %d\n"

.subsections_via_symbols
