	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmac_get_queue_page
_gmac_get_queue_page:                   ## @gmac_get_queue_page
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.2:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rax)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rax
	decq	%rcx
	jne	LBB0_3
	jmp	LBB0_7
LBB0_6:
	movl	16(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"try to get page with no page list\n"

	.no_dead_strip	_gmac_get_queue_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmac_get_queue_page
_gmac_get_queue_page:                   ; @gmac_get_queue_page
	.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, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0]
	cmp	w10, w9
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #4
	subs	x8, x8, #1
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	ldr	w0, [x8, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"try to get page with no page list\n"

	.no_dead_strip	_gmac_get_queue_page
.subsections_via_symbols
