	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp_sec_attach
_xlp_sec_attach:                        ## @xlp_sec_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
	movl	%edi, %r12d
	callq	_device_get_softc
	movq	%rax, %r14
	movl	%r12d, 16(%rax)
	movl	%r12d, %edi
	callq	_pci_get_slot
	movl	%eax, %edi
	callq	_nlm_get_device_node
	movl	%eax, %r15d
	movq	_DFS_DEVICE_SAE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$250, %edx
	callq	_nlm_set_device_frequency
	movq	_bootverbose@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_2:
	movl	%r12d, %edi
	callq	_pci_get_device
	movq	_PCI_DEVICE_ID_NLM_SAE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	callq	_device_set_desc
	movq	_CRYPTOCAP_F_HARDWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_crypto_get_driverid
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_4
## %bb.6:
	movq	_CRYPTO_DES_CBC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_crypto_register
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_str.18(%rip), %rdi
	callq	_puts
LBB0_8:
	movq	(%r14), %rdi
	movq	_CRYPTO_3DES_CBC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_crypto_register
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_str.17(%rip), %rdi
	callq	_puts
LBB0_10:
	movq	(%r14), %rdi
	movq	_CRYPTO_AES_CBC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_crypto_register
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_str.16(%rip), %rdi
	callq	_puts
LBB0_12:
	movq	(%r14), %rdi
	movq	_CRYPTO_ARC4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_crypto_register
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_str.15(%rip), %rdi
	callq	_puts
LBB0_14:
	movq	(%r14), %rdi
	movq	_CRYPTO_MD5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_crypto_register
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_str.14(%rip), %rdi
	callq	_puts
LBB0_16:
	movq	(%r14), %rdi
	movq	_CRYPTO_SHA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_crypto_register
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_str.13(%rip), %rdi
	callq	_puts
LBB0_18:
	movq	(%r14), %rdi
	movq	_CRYPTO_MD5_HMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_crypto_register
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_str.12(%rip), %rdi
	callq	_puts
LBB0_20:
	movq	(%r14), %rdi
	movq	_CRYPTO_SHA1_HMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_crypto_register
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_22:
	movl	%r15d, %edi
	callq	_nlm_get_sec_pcibase
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_nlm_qidstart
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_nlm_qnum
                                        ## kill: def $eax killed $eax def $rax
	movl	%r15d, 8(%r14)
	addl	%r15d, %eax
	decl	%eax
	movl	%eax, 12(%r14)
LBB0_23:
	movq	%r14, %rdi
	callq	_xlp_sec_init
	testq	%rax, %rax
	jne	LBB0_5
## %bb.24:
	cmpq	$0, (%r13)
	je	LBB0_25
## %bb.26:
	leaq	L_.str.11(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r12d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_27
LBB0_4:
	leaq	L_str.19(%rip), %rdi
	callq	_puts
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_DFS_DEVICE_SAE,4,2             ## @DFS_DEVICE_SAE
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SAE Freq: %dMHz\n"

	.comm	_PCI_DEVICE_ID_NLM_SAE,8,3      ## @PCI_DEVICE_ID_NLM_SAE
L_.str.1:                               ## @.str.1
	.asciz	"XLP Security Accelerator"

	.comm	_CRYPTOCAP_F_HARDWARE,4,2       ## @CRYPTOCAP_F_HARDWARE
	.comm	_CRYPTO_DES_CBC,4,2             ## @CRYPTO_DES_CBC
	.comm	_CRYPTO_3DES_CBC,4,2            ## @CRYPTO_3DES_CBC
	.comm	_CRYPTO_AES_CBC,4,2             ## @CRYPTO_AES_CBC
	.comm	_CRYPTO_ARC4,4,2                ## @CRYPTO_ARC4
	.comm	_CRYPTO_MD5,4,2                 ## @CRYPTO_MD5
	.comm	_CRYPTO_SHA1,4,2                ## @CRYPTO_SHA1
	.comm	_CRYPTO_MD5_HMAC,4,2            ## @CRYPTO_MD5_HMAC
	.comm	_CRYPTO_SHA1_HMAC,4,2           ## @CRYPTO_SHA1_HMAC
L_.str.11:                              ## @.str.11
	.asciz	"SEC Initialization complete!\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_str:                                  ## @str
	.asciz	"register failed for CRYPTO_SHA1_HMAC"

L_str.12:                               ## @str.12
	.asciz	"register failed for CRYPTO_MD5_HMAC"

L_str.13:                               ## @str.13
	.asciz	"register failed for CRYPTO_SHA1"

L_str.14:                               ## @str.14
	.asciz	"register failed for CRYPTO_MD5"

L_str.15:                               ## @str.15
	.asciz	"register failed for CRYPTO_ARC4"

L_str.16:                               ## @str.16
	.asciz	"register failed for CRYPTO_AES_CBC"

L_str.17:                               ## @str.17
	.asciz	"register failed for CRYPTO_3DES_CBC"

L_str.18:                               ## @str.18
	.asciz	"register failed for CRYPTO_DES_CBC"

L_str.19:                               ## @str.19
	.asciz	"xlp_sec - error : could not get the driver id"

	.no_dead_strip	_xlp_sec_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlp_sec_attach
_xlp_sec_attach:                        ; @xlp_sec_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #16]
	mov	x0, x19
	bl	_pci_get_slot
	bl	_nlm_get_device_node
	mov	x21, x0
Lloh0:
	adrp	x8, _DFS_DEVICE_SAE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DFS_DEVICE_SAE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #250
	bl	_nlm_set_device_frequency
                                        ; kill: def $w0 killed $w0 def $x0
Lloh3:
	adrp	x23, _bootverbose@GOTPAGE
Lloh4:
	ldr	x23, [x23, _bootverbose@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_2:
	mov	x0, x19
	bl	_pci_get_device
Lloh7:
	adrp	x8, _PCI_DEVICE_ID_NLM_SAE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCI_DEVICE_ID_NLM_SAE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_device_set_desc
Lloh12:
	adrp	x8, _CRYPTOCAP_F_HARDWARE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CRYPTOCAP_F_HARDWARE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_crypto_get_driverid
	str	x0, [x20]
	tbnz	x0, #63, LBB0_25
; %bb.4:
Lloh15:
	adrp	x8, _CRYPTO_DES_CBC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CRYPTO_DES_CBC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_crypto_register
	cbz	x0, LBB0_6
; %bb.5:
Lloh18:
	adrp	x0, l_str.18@PAGE
Lloh19:
	add	x0, x0, l_str.18@PAGEOFF
	bl	_puts
LBB0_6:
	ldr	x0, [x20]
Lloh20:
	adrp	x8, _CRYPTO_3DES_CBC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CRYPTO_3DES_CBC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_crypto_register
	cbz	x0, LBB0_8
; %bb.7:
Lloh23:
	adrp	x0, l_str.17@PAGE
Lloh24:
	add	x0, x0, l_str.17@PAGEOFF
	bl	_puts
LBB0_8:
	ldr	x0, [x20]
Lloh25:
	adrp	x8, _CRYPTO_AES_CBC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CRYPTO_AES_CBC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_crypto_register
	cbz	x0, LBB0_10
; %bb.9:
Lloh28:
	adrp	x0, l_str.16@PAGE
Lloh29:
	add	x0, x0, l_str.16@PAGEOFF
	bl	_puts
LBB0_10:
	ldr	x0, [x20]
Lloh30:
	adrp	x8, _CRYPTO_ARC4@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CRYPTO_ARC4@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_crypto_register
	cbz	x0, LBB0_12
; %bb.11:
Lloh33:
	adrp	x0, l_str.15@PAGE
Lloh34:
	add	x0, x0, l_str.15@PAGEOFF
	bl	_puts
LBB0_12:
	ldr	x0, [x20]
Lloh35:
	adrp	x8, _CRYPTO_MD5@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CRYPTO_MD5@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_crypto_register
	cbz	x0, LBB0_14
; %bb.13:
Lloh38:
	adrp	x0, l_str.14@PAGE
Lloh39:
	add	x0, x0, l_str.14@PAGEOFF
	bl	_puts
LBB0_14:
	ldr	x0, [x20]
Lloh40:
	adrp	x8, _CRYPTO_SHA1@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CRYPTO_SHA1@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_crypto_register
	cbz	x0, LBB0_16
; %bb.15:
Lloh43:
	adrp	x0, l_str.13@PAGE
Lloh44:
	add	x0, x0, l_str.13@PAGEOFF
	bl	_puts
LBB0_16:
	ldr	x0, [x20]
Lloh45:
	adrp	x8, _CRYPTO_MD5_HMAC@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CRYPTO_MD5_HMAC@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_crypto_register
	cbz	x0, LBB0_18
; %bb.17:
Lloh48:
	adrp	x0, l_str.12@PAGE
Lloh49:
	add	x0, x0, l_str.12@PAGEOFF
	bl	_puts
LBB0_18:
	ldr	x0, [x20]
Lloh50:
	adrp	x8, _CRYPTO_SHA1_HMAC@GOTPAGE
Lloh51:
	ldr	x8, [x8, _CRYPTO_SHA1_HMAC@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_crypto_register
	cbz	x0, LBB0_20
; %bb.19:
Lloh53:
	adrp	x0, l_str@PAGE
Lloh54:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_20:
	mov	x0, x21
	bl	_nlm_get_sec_pcibase
	mov	x21, x0
	bl	_nlm_qidstart
	mov	x22, x0
	mov	x0, x21
	bl	_nlm_qnum
	add	w8, w22, w0
	sub	w8, w8, #1
	stp	w22, w8, [x20, #8]
LBB0_21:
	mov	x0, x20
	bl	_xlp_sec_init
	cbnz	x0, LBB0_26
; %bb.22:
	ldr	x8, [x23]
	cbz	x8, LBB0_24
; %bb.23:
Lloh55:
	adrp	x1, l_.str.11@PAGE
Lloh56:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_24:
	mov	w0, #0
	b	LBB0_27
LBB0_25:
Lloh57:
	adrp	x0, l_str.19@PAGE
Lloh58:
	add	x0, x0, l_str.19@PAGEOFF
	bl	_puts
LBB0_26:
Lloh59:
	adrp	x8, _ENXIO@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
LBB0_27:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_DFS_DEVICE_SAE,4,2             ; @DFS_DEVICE_SAE
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SAE Freq: %dMHz\n"

	.comm	_PCI_DEVICE_ID_NLM_SAE,8,3      ; @PCI_DEVICE_ID_NLM_SAE
l_.str.1:                               ; @.str.1
	.asciz	"XLP Security Accelerator"

	.comm	_CRYPTOCAP_F_HARDWARE,4,2       ; @CRYPTOCAP_F_HARDWARE
	.comm	_CRYPTO_DES_CBC,4,2             ; @CRYPTO_DES_CBC
	.comm	_CRYPTO_3DES_CBC,4,2            ; @CRYPTO_3DES_CBC
	.comm	_CRYPTO_AES_CBC,4,2             ; @CRYPTO_AES_CBC
	.comm	_CRYPTO_ARC4,4,2                ; @CRYPTO_ARC4
	.comm	_CRYPTO_MD5,4,2                 ; @CRYPTO_MD5
	.comm	_CRYPTO_SHA1,4,2                ; @CRYPTO_SHA1
	.comm	_CRYPTO_MD5_HMAC,4,2            ; @CRYPTO_MD5_HMAC
	.comm	_CRYPTO_SHA1_HMAC,4,2           ; @CRYPTO_SHA1_HMAC
l_.str.11:                              ; @.str.11
	.asciz	"SEC Initialization complete!\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_str:                                  ; @str
	.asciz	"register failed for CRYPTO_SHA1_HMAC"

l_str.12:                               ; @str.12
	.asciz	"register failed for CRYPTO_MD5_HMAC"

l_str.13:                               ; @str.13
	.asciz	"register failed for CRYPTO_SHA1"

l_str.14:                               ; @str.14
	.asciz	"register failed for CRYPTO_MD5"

l_str.15:                               ; @str.15
	.asciz	"register failed for CRYPTO_ARC4"

l_str.16:                               ; @str.16
	.asciz	"register failed for CRYPTO_AES_CBC"

l_str.17:                               ; @str.17
	.asciz	"register failed for CRYPTO_3DES_CBC"

l_str.18:                               ; @str.18
	.asciz	"register failed for CRYPTO_DES_CBC"

l_str.19:                               ; @str.19
	.asciz	"xlp_sec - error : could not get the driver id"

	.no_dead_strip	_xlp_sec_attach
.subsections_via_symbols
