	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_params
_validate_params:                       ## @validate_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_DM_BUFFER_FULL_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DM_UEVENT_GENERATED_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DM_SECURE_DATA_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DM_DATA_OUT_FLAG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, 16(%rsi)
	movq	_DM_REMOVE_ALL_CMD@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	%rdi, (%rcx)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rax
	movq	_DM_LIST_DEVICES_CMD@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_11
## %bb.2:
	movq	_DM_LIST_VERSIONS_CMD@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_11
## %bb.3:
	movq	_DM_DEV_CREATE_CMD@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_7
## %bb.4:
	movq	(%rsi), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_10
## %bb.5:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DMWARN
	jmp	LBB0_6
LBB0_7:
	movq	(%rsi), %rcx
	movq	8(%rsi), %rdx
	cmpb	$0, (%rdx)
	je	LBB0_10
## %bb.8:
	cmpb	$0, (%rcx)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DMWARN
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	movq	_DM_NAME_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movb	$0, -1(%rax,%rcx)
	movq	8(%rsi), %rax
	movq	_DM_UUID_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movb	$0, -1(%rcx,%rax)
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_BUFFER_FULL_FLAG,4,2        ## @DM_BUFFER_FULL_FLAG
	.comm	_DM_UEVENT_GENERATED_FLAG,4,2   ## @DM_UEVENT_GENERATED_FLAG
	.comm	_DM_SECURE_DATA_FLAG,4,2        ## @DM_SECURE_DATA_FLAG
	.comm	_DM_DATA_OUT_FLAG,4,2           ## @DM_DATA_OUT_FLAG
	.comm	_DM_REMOVE_ALL_CMD,8,3          ## @DM_REMOVE_ALL_CMD
	.comm	_DM_LIST_DEVICES_CMD,8,3        ## @DM_LIST_DEVICES_CMD
	.comm	_DM_LIST_VERSIONS_CMD,8,3       ## @DM_LIST_VERSIONS_CMD
	.comm	_DM_DEV_CREATE_CMD,8,3          ## @DM_DEV_CREATE_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name not supplied when creating device"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"only supply one of name or uuid, cmd(%u)"

	.comm	_DM_NAME_LEN,4,2                ## @DM_NAME_LEN
	.comm	_DM_UUID_LEN,4,2                ## @DM_UUID_LEN
	.no_dead_strip	_validate_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_params
_validate_params:                       ; @validate_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _DM_BUFFER_FULL_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_BUFFER_FULL_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x1, #16]
Lloh3:
	adrp	x10, _DM_UEVENT_GENERATED_FLAG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DM_UEVENT_GENERATED_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh6:
	adrp	x10, _DM_SECURE_DATA_FLAG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DM_SECURE_DATA_FLAG@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh9:
	adrp	x10, _DM_DATA_OUT_FLAG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DM_DATA_OUT_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w8, w9, w8
	str	w8, [x1, #16]
Lloh12:
	adrp	x8, _DM_REMOVE_ALL_CMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DM_REMOVE_ALL_CMD@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _DM_LIST_DEVICES_CMD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DM_LIST_DEVICES_CMD@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _DM_LIST_VERSIONS_CMD@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DM_LIST_VERSIONS_CMD@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x0
	ccmp	x9, x0, #4, ne
	ccmp	x10, x0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
Lloh21:
	adrp	x8, _DM_DEV_CREATE_CMD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DM_DEV_CREATE_CMD@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x1]
	ldrb	w9, [x8]
	cbnz	w9, LBB0_9
; %bb.4:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:
	ldp	x8, x9, [x1]
	ldrb	w9, [x9]
	cbz	w9, LBB0_9
; %bb.6:
	ldrb	w9, [x8]
	cbz	w9, LBB0_9
; %bb.7:
	str	x0, [sp]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_DMWARN
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
Lloh31:
	adrp	x9, _DM_NAME_LEN@GOTPAGE
Lloh32:
	ldr	x9, [x9, _DM_NAME_LEN@GOTPAGEOFF]
Lloh33:
	ldrsw	x9, [x9]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	ldr	x8, [x1, #8]
Lloh34:
	adrp	x9, _DM_UUID_LEN@GOTPAGE
Lloh35:
	ldr	x9, [x9, _DM_UUID_LEN@GOTPAGEOFF]
Lloh36:
	ldrsw	x9, [x9]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_BUFFER_FULL_FLAG,4,2        ; @DM_BUFFER_FULL_FLAG
	.comm	_DM_UEVENT_GENERATED_FLAG,4,2   ; @DM_UEVENT_GENERATED_FLAG
	.comm	_DM_SECURE_DATA_FLAG,4,2        ; @DM_SECURE_DATA_FLAG
	.comm	_DM_DATA_OUT_FLAG,4,2           ; @DM_DATA_OUT_FLAG
	.comm	_DM_REMOVE_ALL_CMD,8,3          ; @DM_REMOVE_ALL_CMD
	.comm	_DM_LIST_DEVICES_CMD,8,3        ; @DM_LIST_DEVICES_CMD
	.comm	_DM_LIST_VERSIONS_CMD,8,3       ; @DM_LIST_VERSIONS_CMD
	.comm	_DM_DEV_CREATE_CMD,8,3          ; @DM_DEV_CREATE_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name not supplied when creating device"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"only supply one of name or uuid, cmd(%u)"

	.comm	_DM_NAME_LEN,4,2                ; @DM_NAME_LEN
	.comm	_DM_UUID_LEN,4,2                ; @DM_UUID_LEN
	.no_dead_strip	_validate_params
.subsections_via_symbols
