	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port100_get_command_type_mask
_port100_get_command_type_mask:         ## @port100_get_command_type_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_port100_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_PORT100_CMD_GET_COMMAND_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_port100_send_cmd_sync
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_7
LBB0_3:
	cmpl	$8, (%r14)
	jge	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_be64_to_cpu
	movq	%rax, %rbx
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_PORT100_CMD_GET_COMMAND_TYPE,4,2 ## @PORT100_CMD_GET_COMMAND_TYPE
	.no_dead_strip	_port100_get_command_type_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port100_get_command_type_mask
_port100_get_command_type_mask:         ; @port100_get_command_type_mask
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #0
	bl	_port100_alloc_skb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x8, _PORT100_CMD_GET_COMMAND_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT100_CMD_GET_COMMAND_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_port100_send_cmd_sync
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x20, x8
	b	LBB0_8
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #8
	b.ge	LBB0_6
; %bb.5:
	mov	x20, #0
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_be64_to_cpu
	mov	x20, x0
LBB0_7:
	mov	x0, x19
	bl	_dev_kfree_skb
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_PORT100_CMD_GET_COMMAND_TYPE,4,2 ; @PORT100_CMD_GET_COMMAND_TYPE
	.no_dead_strip	_port100_get_command_type_mask
.subsections_via_symbols
