	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpm_bios_log_setup             ## -- Begin function tpm_bios_log_setup
	.p2align	4, 0x90
_tpm_bios_log_setup:                    ## @tpm_bios_log_setup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_securityfs_create_dir
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_is_bad
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	_S_IRUSR@GOTPCREL(%rip), %r12
	movq	_S_IRGRP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	movq	_tpm_binary_bios_measurements_ops@GOTPCREL(%rip), %r8
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_securityfs_create_file
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_is_bad
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movl	(%rbx), %esi
	orl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	_tpm_ascii_bios_measurements_ops@GOTPCREL(%rip), %r8
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_securityfs_create_file
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_is_bad
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	movq	%r14, %rdi
	callq	_securityfs_remove
LBB0_7:
	movq	%r15, %rdi
	callq	_securityfs_remove
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movq	%r12, (%rax)
	movq	%r14, 8(%rax)
	movq	%r15, 16(%rax)
	jmp	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	callq	_securityfs_remove
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"binary_bios_measurements"

	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IRGRP,4,2                    ## @S_IRGRP
	.comm	_tpm_binary_bios_measurements_ops,4,2 ## @tpm_binary_bios_measurements_ops
L_.str.1:                               ## @.str.1
	.asciz	"ascii_bios_measurements"

	.comm	_tpm_ascii_bios_measurements_ops,4,2 ## @tpm_ascii_bios_measurements_ops
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpm_bios_log_setup             ; -- Begin function tpm_bios_log_setup
	.p2align	2
_tpm_bios_log_setup:                    ; @tpm_bios_log_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x1, #0
	bl	_securityfs_create_dir
	mov	x19, x0
	bl	_is_bad
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x21, _S_IRUSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _S_IRUSR@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _S_IRGRP@GOTPAGE
Lloh3:
	ldr	x22, [x22, _S_IRGRP@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w9, w8
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
Lloh6:
	adrp	x4, _tpm_binary_bios_measurements_ops@GOTPAGE
Lloh7:
	ldr	x4, [x4, _tpm_binary_bios_measurements_ops@GOTPAGEOFF]
	mov	x2, x19
	mov	x3, #0
	bl	_securityfs_create_file
	mov	x20, x0
	bl	_is_bad
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w1, w9, w8
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh10:
	adrp	x4, _tpm_ascii_bios_measurements_ops@GOTPAGE
Lloh11:
	ldr	x4, [x4, _tpm_ascii_bios_measurements_ops@GOTPAGEOFF]
	mov	x2, x19
	mov	x3, #0
	bl	_securityfs_create_file
	mov	x21, x0
	bl	_is_bad
	cbz	x0, LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_securityfs_remove
LBB0_4:
	mov	x0, x19
	bl	_securityfs_remove
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.7:
	stp	x21, x20, [x0]
	str	x19, [x0, #16]
	b	LBB0_5
LBB0_8:
	mov	x0, x21
	bl	_securityfs_remove
	b	LBB0_3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"binary_bios_measurements"

	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IRGRP,4,2                    ; @S_IRGRP
	.comm	_tpm_binary_bios_measurements_ops,4,2 ; @tpm_binary_bios_measurements_ops
l_.str.1:                               ; @.str.1
	.asciz	"ascii_bios_measurements"

	.comm	_tpm_ascii_bios_measurements_ops,4,2 ; @tpm_ascii_bios_measurements_ops
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
