	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gp8psk_fe_attach               ## -- Begin function gp8psk_fe_attach
	.p2align	4, 0x90
_gp8psk_fe_attach:                      ## @gp8psk_fe_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 8(%rdi)
	je	LBB0_6
## %bb.2:
	cmpl	$0, 4(%rbx)
	je	LBB0_6
## %bb.3:
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.4:
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r13
	leaq	8(%rax), %r12
	movq	%rax, %rdi
	addq	$16, %rdi
	movq	_gp8psk_fe_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r13, 8(%r13)
	movq	%rbx, 32(%r13)
	movq	%r14, 24(%r13)
	movl	%r15d, (%r13)
	testl	%r15d, %r15d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error! gp8psk-fe ops not defined.\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_gp8psk_fe_ops,4,2              ## @gp8psk_fe_ops
L_.str.1:                               ## @.str.1
	.asciz	"Frontend %sattached\n"

L_.str.2:                               ## @.str.2
	.asciz	"revision 1 "

L_.str.3:                               ## @.str.3
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gp8psk_fe_attach               ; -- Begin function gp8psk_fe_attach
	.p2align	2
_gp8psk_fe_attach:                      ; @gp8psk_fe_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x23, x0
	add	x22, x0, #8
	add	x0, x0, #16
Lloh3:
	adrp	x1, _gp8psk_fe_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _gp8psk_fe_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x23, [x23, #8]
	stp	x20, x21, [x23, #24]
	str	w19, [x23]
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w19, #0
	csel	x1, x9, x8, eq
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_7:
	mov	x22, #0
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error! gp8psk-fe ops not defined.\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_gp8psk_fe_ops,4,2              ; @gp8psk_fe_ops
l_.str.1:                               ; @.str.1
	.asciz	"Frontend %sattached\n"

l_.str.2:                               ; @.str.2
	.asciz	"revision 1 "

l_.str.3:                               ; @.str.3
	.space	1

.subsections_via_symbols
