	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_dell_smbios_smm           ## -- Begin function init_dell_smbios_smm
	.p2align	4, 0x90
_init_dell_smbios_smm:                  ## @init_dell_smbios_smm
	.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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	_GFP_DMA32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	___get_free_page
	movq	_buffer@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_find_cmd_address@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dmi_walk
	xorl	%eax, %eax
	callq	_test_wsmt_enabled
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	$1, %esi
	callq	_platform_device_alloc
	movq	_platform_device@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %rdi
	callq	_platform_device_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	(%r15), %rdi
	movq	_dell_smbios_smm_call@GOTPCREL(%rip), %rsi
	callq	_dell_smbios_register_device
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_platform_device_del
LBB0_8:
	movq	(%r15), %rdi
	callq	_platform_device_put
LBB0_11:
	movq	(%r14), %rdi
	callq	_free_page
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_DMA32,4,2                  ## @GFP_DMA32
	.comm	_buffer,8,3                     ## @buffer
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_find_cmd_address,4,2           ## @find_cmd_address
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling due to WSMT enabled\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"dell-smbios"

	.comm	_platform_device,8,3            ## @platform_device
	.comm	_dell_smbios_smm_call,4,2       ## @dell_smbios_smm_call
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_dell_smbios_smm           ; -- Begin function init_dell_smbios_smm
	.p2align	2
_init_dell_smbios_smm:                  ; @init_dell_smbios_smm
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GFP_DMA32@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GFP_DMA32@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	___get_free_page
Lloh6:
	adrp	x20, _buffer@GOTPAGE
Lloh7:
	ldr	x20, [x20, _buffer@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _find_cmd_address@GOTPAGE
Lloh9:
	ldr	x8, [x8, _find_cmd_address@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_dmi_walk
	bl	_test_wsmt_enabled
	cbz	x0, LBB0_5
; %bb.2:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_10
LBB0_4:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_11
LBB0_5:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_platform_device_alloc
Lloh20:
	adrp	x21, _platform_device@GOTPAGE
Lloh21:
	ldr	x21, [x21, _platform_device@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_12
; %bb.6:
	bl	_platform_device_add
	mov	x19, x0
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	x0, [x21]
Lloh22:
	adrp	x1, _dell_smbios_smm_call@GOTPAGE
Lloh23:
	ldr	x1, [x1, _dell_smbios_smm_call@GOTPAGEOFF]
	bl	_dell_smbios_register_device
	mov	x19, x0
	cbz	w0, LBB0_11
; %bb.8:
	ldr	x0, [x21]
	bl	_platform_device_del
LBB0_9:
	ldr	x0, [x21]
	bl	_platform_device_put
LBB0_10:
	ldr	x0, [x20]
	bl	_free_page
LBB0_11:
	mov	x0, x19
	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_12:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_DMA32,4,2                  ; @GFP_DMA32
	.comm	_buffer,8,3                     ; @buffer
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_find_cmd_address,4,2           ; @find_cmd_address
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling due to WSMT enabled\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"dell-smbios"

	.comm	_platform_device,8,3            ; @platform_device
	.comm	_dell_smbios_smm_call,4,2       ; @dell_smbios_smm_call
.subsections_via_symbols
