	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_hd_cport_allocate           ## -- Begin function gb_hd_cport_allocate
	.p2align	4, 0x90
_gb_hd_cport_allocate:                  ## @gb_hd_cport_allocate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.6:
	movl	%eax, %esi
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_1:
	movl	(%rdi), %edx
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	cmpl	%eax, %edx
	jle	LBB0_7
## %bb.4:
	leal	1(%rax), %edx
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	popq	%rbp
	jmp	_ida_simple_get                 ## TAILCALL
LBB0_7:
	addq	$4, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cport %d not available\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_hd_cport_allocate           ; -- Begin function gb_hd_cport_allocate
	.p2align	2
_gb_hd_cport_allocate:                  ; @gb_hd_cport_allocate
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
	ldr	x9, [x0, #8]
	ldr	x3, [x9]
	cbz	x3, LBB0_2
; %bb.1:
	mov	x1, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	br	x3
LBB0_2:
	ldr	w2, [x0]
	tbnz	w8, #31, LBB0_5
; %bb.3:
	cmp	w2, w8
	b.le	LBB0_7
; %bb.4:
	add	w2, w8, #1
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
Lloh0:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
	add	x0, x0, #16
Lloh2:
	ldr	w3, [x9]
	mov	x1, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_ida_simple_get
LBB0_7:
	add	x0, x0, #4
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cport %d not available\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
