	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_check_cmsghdr               ## -- Begin function uc_check_cmsghdr
	.p2align	4, 0x90
_uc_check_cmsghdr:                      ## @uc_check_cmsghdr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movl	%esi, %edx
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_3
## %bb.4:
	movl	8(%rbx), %esi
	cmpl	%edx, %esi
	jne	LBB0_5
## %bb.6:
	movl	12(%rbx), %r15d
	movq	%r14, %rdi
	callq	_CMSG_LEN
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r15d
	je	LBB0_10
## %bb.7:
	movl	12(%rbx), %ebx
	movq	%r14, %rdi
	callq	_CMSG_LEN
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsgx
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	xorl	%eax, %eax
	callq	_uc_logmsgx
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmsghdr is NULL"

	.comm	_SOL_SOCKET,8,3                 ## @SOL_SOCKET
L_.str.1:                               ## @.str.1
	.asciz	"cmsghdr.cmsg_level %d != SOL_SOCKET"

L_.str.2:                               ## @.str.2
	.asciz	"cmsghdr.cmsg_type %d != %d"

L_.str.3:                               ## @.str.3
	.asciz	"cmsghdr.cmsg_len %u != %zu"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_check_cmsghdr               ; -- Begin function uc_check_cmsghdr
	.p2align	2
_uc_check_cmsghdr:                      ; @uc_check_cmsghdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x20, #8]
	cmp	w8, w1
	b.ne	LBB0_7
; %bb.3:
	mov	x19, x2
	ldr	w21, [x20, #12]
	mov	x0, x2
	bl	_CMSG_LEN
	cmp	w21, w0
	b.ne	LBB0_8
; %bb.4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	stp	x8, x1, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	w20, [x20, #12]
	mov	x0, x19
	bl	_CMSG_LEN
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_uc_logmsgx
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmsghdr is NULL"

	.comm	_SOL_SOCKET,8,3                 ; @SOL_SOCKET
l_.str.1:                               ; @.str.1
	.asciz	"cmsghdr.cmsg_level %d != SOL_SOCKET"

l_.str.2:                               ; @.str.2
	.asciz	"cmsghdr.cmsg_type %d != %d"

l_.str.3:                               ; @.str.3
	.asciz	"cmsghdr.cmsg_len %u != %zu"

.subsections_via_symbols
