	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rootplug_bprm_check_security
_rootplug_bprm_check_security:          ## @rootplug_bprm_check_security
	.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, %rbx
	movl	8(%rdi), %esi
	movq	(%rdi), %rax
	movl	8(%rax), %edx
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_root_dbg
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_vendor_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_product_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_find_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	callq	_usb_put_dev
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_root_dbg
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file %s, e_uid = %d, e_gid = %d\n"

	.comm	_vendor_id,4,2                  ## @vendor_id
	.comm	_product_id,4,2                 ## @product_id
L_.str.1:                               ## @.str.1
	.asciz	"e_gid = 0, and device not found, task not allowed to run...\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_rootplug_bprm_check_security
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rootplug_bprm_check_security
_rootplug_bprm_check_security:          ; @rootplug_bprm_check_security
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x8]
	ldr	w10, [x0, #8]
	ldr	w8, [x8, #8]
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_root_dbg
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _vendor_id@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vendor_id@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _product_id@GOTPAGE
Lloh6:
	ldr	x8, [x8, _product_id@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_usb_find_device
	cbz	x0, LBB0_5
; %bb.2:
	bl	_usb_put_dev
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_root_dbg
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file %s, e_uid = %d, e_gid = %d\n"

	.comm	_vendor_id,4,2                  ; @vendor_id
	.comm	_product_id,4,2                 ; @product_id
l_.str.1:                               ; @.str.1
	.asciz	"e_gid = 0, and device not found, task not allowed to run...\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_rootplug_bprm_check_security
.subsections_via_symbols
