	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_hdr
_verify_hdr:                            ## @verify_hdr
	.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, %r14
	cmpq	$0, 8(%rcx)
	je	LBB0_14
## %bb.1:
	movq	%rsi, %rbx
	addq	$-40, %rdx
	movslq	(%r14), %rax
	movslq	(%rsi), %rsi
	addq	%rax, %rsi
	shlq	$3, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_2
## %bb.3:
	shll	$3, %eax
	cmpl	(%rcx), %eax
	jl	LBB0_20
## %bb.4:
	cmpq	$0, 16(%rbx)
	jne	LBB0_2
## %bb.5:
	movq	8(%rbx), %rdi
	movl	4(%r14), %eax
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	cmpl	$0, 4(%rbx)
	je	LBB0_2
LBB0_8:
	shll	$3, %eax
	cmpl	4(%rcx), %eax
	jl	LBB0_20
## %bb.9:
	callq	_u64_to_user_ptr
	movl	4(%rbx), %esi
	addl	4(%r14), %esi
	shll	$3, %esi
	movl	%eax, %edi
	callq	_access_ok
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_22
## %bb.10:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_14:
	movslq	(%r14), %rax
	shlq	$2, %rax
	cmpq	%rdx, %rax
	jne	LBB0_2
## %bb.15:
	movslq	(%rcx), %rax
	addq	$8, %rax
	cmpq	%rdx, %rax
	jbe	LBB0_19
## %bb.16:
	cmpq	$16, %rdx
	jne	LBB0_20
## %bb.17:
	movq	_IB_USER_VERBS_CMD_DESTROY_CQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%r14)
	jne	LBB0_20
## %bb.18:
	movl	$6, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_19:
	movl	4(%r14), %edx
	shll	$2, %edx
	xorl	%eax, %eax
	cmpl	4(%rcx), %edx
	jge	LBB0_22
LBB0_20:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_11:
	testl	%eax, %eax
	jne	LBB0_2
## %bb.12:
	cmpl	$0, 4(%rbx)
	je	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_21:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_IB_USER_VERBS_CMD_DESTROY_CQ,8,3 ## @IB_USER_VERBS_CMD_DESTROY_CQ
	.no_dead_strip	_verify_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_hdr
_verify_hdr:                            ; @verify_hdr
	.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
	ldr	x8, [x3, #8]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x20, x1
	sub	x9, x2, #40
	ldr	w8, [x19]
	ldr	w10, [x1]
	add	w10, w10, w8
	lsl	w10, w10, #3
	cmp	x9, w10, sxtw
	b.ne	LBB0_19
; %bb.2:
	ldr	w9, [x3]
	cmp	w9, w8, lsl #3
	b.gt	LBB0_16
; %bb.3:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_19
; %bb.4:
	ldr	x0, [x20, #8]
	ldr	w8, [x19, #4]
	cbz	x0, LBB0_17
; %bb.5:
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w9, [x20, #4]
	cbz	w9, LBB0_19
LBB0_7:
	ldr	w9, [x3, #4]
	cmp	w9, w8, lsl #3
	b.gt	LBB0_16
; %bb.8:
	bl	_u64_to_user_ptr
	ldr	w8, [x19, #4]
	ldr	w9, [x20, #4]
	add	w8, w9, w8
	lsl	w1, w8, #3
	bl	_access_ok
	cbnz	w0, LBB0_22
; %bb.9:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_20
LBB0_10:
	ldrsw	x8, [x19]
	cmp	x2, x8, lsl #2
	b.ne	LBB0_19
; %bb.11:
	ldrsw	x8, [x3]
	add	x8, x8, #8
	cmp	x8, x2
	b.ls	LBB0_15
; %bb.12:
	cmp	x2, #16
	b.ne	LBB0_16
; %bb.13:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _IB_USER_VERBS_CMD_DESTROY_CQ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_DESTROY_CQ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	mov	w0, #0
	mov	w8, #6
	str	w8, [x19]
	b	LBB0_21
LBB0_15:
	ldr	w8, [x19, #4]
	ldr	w9, [x3, #4]
	cmp	w9, w8, lsl #2
	b.le	LBB0_22
LBB0_16:
Lloh5:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
	cbnz	w8, LBB0_19
; %bb.18:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_22
LBB0_19:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	w0, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_IB_USER_VERBS_CMD_DESTROY_CQ,8,3 ; @IB_USER_VERBS_CMD_DESTROY_CQ
	.no_dead_strip	_verify_hdr
.subsections_via_symbols
