	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port100_send_cmd_async
_port100_send_cmd_async:                ## @port100_send_cmd_async
	.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
	movq	%rdi, %r12
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_nfc_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%rdx, %r14
	movl	%esi, %r13d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	_PORT100_FRAME_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	_PORT100_FRAME_MAX_PAYLOAD_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	(%rax), %ebx
	movq	_PORT100_FRAME_TAIL_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_alloc_skb
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	(%r15), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movl	%r13d, 40(%rax)
	movq	%r14, 32(%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r15)
	movl	%ebx, (%r15)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_port100_build_cmd_frame
	movq	%r15, (%r12)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_port100_send_frame_async
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	movq	$0, (%r12)
	jmp	LBB0_10
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT100_FRAME_HEADER_LEN,4,2   ## @PORT100_FRAME_HEADER_LEN
	.comm	_PORT100_FRAME_MAX_PAYLOAD_LEN,4,2 ## @PORT100_FRAME_MAX_PAYLOAD_LEN
	.comm	_PORT100_FRAME_TAIL_LEN,4,2     ## @PORT100_FRAME_TAIL_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A command is still in process\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_port100_send_cmd_async
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port100_send_cmd_async
_port100_send_cmd_async:                ; @port100_send_cmd_async
	.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	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfc_err
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x22, x1
Lloh4:
	adrp	x8, _PORT100_FRAME_HEADER_LEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PORT100_FRAME_HEADER_LEN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _PORT100_FRAME_MAX_PAYLOAD_LEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PORT100_FRAME_MAX_PAYLOAD_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _PORT100_FRAME_TAIL_LEN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PORT100_FRAME_TAIL_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	add	w8, w9, w8
	add	w25, w8, w10
Lloh13:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x25
	bl	_alloc_skb
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	ldr	w1, [x26]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x26, x0
	str	w22, [x0, #40]
	stp	x21, x20, [x0, #24]
	str	w25, [x0]
	str	w24, [x0, #16]
	str	x23, [x0, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_port100_build_cmd_frame
	str	x26, [x19]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x25
	bl	_port100_send_frame_async
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x26
	bl	_kfree
	mov	x0, x21
	bl	_dev_kfree_skb
	str	xzr, [x19]
	b	LBB0_9
LBB0_6:
	mov	x0, x21
	bl	_dev_kfree_skb
LBB0_7:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT100_FRAME_HEADER_LEN,4,2   ; @PORT100_FRAME_HEADER_LEN
	.comm	_PORT100_FRAME_MAX_PAYLOAD_LEN,4,2 ; @PORT100_FRAME_MAX_PAYLOAD_LEN
	.comm	_PORT100_FRAME_TAIL_LEN,4,2     ; @PORT100_FRAME_TAIL_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A command is still in process\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_port100_send_cmd_async
.subsections_via_symbols
