	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auditfilter_module_attach
_auditfilter_module_attach:             ## @auditfilter_module_attach
	.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	56(%rdi), %edi
	movq	_RTLD_NOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlopen
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_AUDIT_FILTER_ATTACH_STRING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_dlsym
	movq	%rax, (%rbx)
	movq	48(%rbx), %rdi
	movq	_AUDIT_FILTER_REINIT_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlsym
	movq	%rax, 32(%rbx)
	movq	48(%rbx), %rdi
	movq	_AUDIT_FILTER_RECORD_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlsym
	movq	%rax, 24(%rbx)
	movq	48(%rbx), %rdi
	movq	_AUDIT_FILTER_RAWRECORD_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlsym
	movq	%rax, 16(%rbx)
	movq	48(%rbx), %rdi
	movq	_AUDIT_FILTER_DETACH_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlsym
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	movl	60(%rbx), %edx
	movl	64(%rbx), %esi
	movq	%rbx, %rdi
	callq	*%rcx
	movq	_AUDIT_FILTER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movl	56(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movq	48(%rbx), %rdi
	callq	_dlclose
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movups	%xmm0, 16(%rbx)
	movups	%xmm0, 32(%rbx)
	movq	$0, 48(%rbx)
	jmp	LBB0_5
LBB0_1:
	movl	56(%rbx), %ebx
	xorl	%eax, %eax
	callq	_dlerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_warnx
LBB0_5:
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTLD_NOW,4,2                   ## @RTLD_NOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auditfilter_module_attach: %s: %s"

	.comm	_AUDIT_FILTER_ATTACH_STRING,4,2 ## @AUDIT_FILTER_ATTACH_STRING
	.comm	_AUDIT_FILTER_REINIT_STRING,4,2 ## @AUDIT_FILTER_REINIT_STRING
	.comm	_AUDIT_FILTER_RECORD_STRING,4,2 ## @AUDIT_FILTER_RECORD_STRING
	.comm	_AUDIT_FILTER_RAWRECORD_STRING,4,2 ## @AUDIT_FILTER_RAWRECORD_STRING
	.comm	_AUDIT_FILTER_DETACH_STRING,4,2 ## @AUDIT_FILTER_DETACH_STRING
	.comm	_AUDIT_FILTER_SUCCESS,8,3       ## @AUDIT_FILTER_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"auditfilter_module_attach: %s: failed"

	.no_dead_strip	_auditfilter_module_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auditfilter_module_attach
_auditfilter_module_attach:             ; @auditfilter_module_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	w0, [x0, #56]
Lloh0:
	adrp	x8, _RTLD_NOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTLD_NOW@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dlopen
	str	x0, [x19, #48]
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _AUDIT_FILTER_ATTACH_STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUDIT_FILTER_ATTACH_STRING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_dlsym
	str	x0, [x19]
	ldr	x0, [x19, #48]
Lloh6:
	adrp	x8, _AUDIT_FILTER_REINIT_STRING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUDIT_FILTER_REINIT_STRING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_dlsym
	str	x0, [x19, #32]
	ldr	x0, [x19, #48]
Lloh9:
	adrp	x8, _AUDIT_FILTER_RECORD_STRING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AUDIT_FILTER_RECORD_STRING@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_dlsym
	str	x0, [x19, #24]
	ldr	x0, [x19, #48]
Lloh12:
	adrp	x8, _AUDIT_FILTER_RAWRECORD_STRING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AUDIT_FILTER_RAWRECORD_STRING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_dlsym
	str	x0, [x19, #16]
	ldr	x0, [x19, #48]
Lloh15:
	adrp	x8, _AUDIT_FILTER_DETACH_STRING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AUDIT_FILTER_DETACH_STRING@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_dlsym
	str	x0, [x19, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	ldp	w2, w1, [x19, #60]
	mov	x0, x19
	blr	x8
Lloh18:
	adrp	x8, _AUDIT_FILTER_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AUDIT_FILTER_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	ldr	w19, [x19, #56]
	bl	_dlerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warnx
	b	LBB0_6
LBB0_5:
	ldr	w1, [x19, #56]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	ldr	x0, [x19, #48]
	bl	_dlclose
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
	str	q0, [x19, #32]
	str	xzr, [x19, #48]
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_RTLD_NOW,4,2                   ; @RTLD_NOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auditfilter_module_attach: %s: %s"

	.comm	_AUDIT_FILTER_ATTACH_STRING,4,2 ; @AUDIT_FILTER_ATTACH_STRING
	.comm	_AUDIT_FILTER_REINIT_STRING,4,2 ; @AUDIT_FILTER_REINIT_STRING
	.comm	_AUDIT_FILTER_RECORD_STRING,4,2 ; @AUDIT_FILTER_RECORD_STRING
	.comm	_AUDIT_FILTER_RAWRECORD_STRING,4,2 ; @AUDIT_FILTER_RAWRECORD_STRING
	.comm	_AUDIT_FILTER_DETACH_STRING,4,2 ; @AUDIT_FILTER_DETACH_STRING
	.comm	_AUDIT_FILTER_SUCCESS,8,3       ; @AUDIT_FILTER_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"auditfilter_module_attach: %s: failed"

	.no_dead_strip	_auditfilter_module_attach
.subsections_via_symbols
