	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function authenticate
_authenticate:                          ## @authenticate
	.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	%rdi, %r15
	movq	32(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_pcmcia_dev_present
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_del_timer
	movl	24(%r15), %esi
	movq	_OPEN_AUTH_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_build_auth_frame
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_authenticate_timeout@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_2:
	movq	_join_net@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rcx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%r15)
	movq	%r14, %rdi
	callq	_add_timer
	movq	_AWAITING_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ray_cs Starting authentication.\n"

L_.str.1:                               ## @.str.1
	.asciz	"ray_cs authenticate - device not present\n"

	.comm	_OPEN_AUTH_REQUEST,4,2          ## @OPEN_AUTH_REQUEST
	.comm	_join_net,4,2                   ## @join_net
	.comm	_authenticate_timeout,4,2       ## @authenticate_timeout
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_AWAITING_RESPONSE,4,2          ## @AWAITING_RESPONSE
	.no_dead_strip	_authenticate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function authenticate
_authenticate:                          ; @authenticate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x20, [x0, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	x0, x20
	bl	_pcmcia_dev_present
	cbz	w0, LBB0_2
; %bb.1:
	add	x20, x19, #8
	mov	x0, x20
	bl	_del_timer
	ldr	w1, [x19, #24]
Lloh2:
	adrp	x8, _OPEN_AUTH_REQUEST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OPEN_AUTH_REQUEST@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_build_auth_frame
Lloh5:
	adrp	x8, _authenticate_timeout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _authenticate_timeout@GOTPAGEOFF]
Lloh7:
	adrp	x9, _join_net@GOTPAGE
Lloh8:
	ldr	x9, [x9, _join_net@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _HZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #1
	str	x8, [x19, #8]
	mov	x0, x20
	bl	_add_timer
Lloh15:
	adrp	x8, _AWAITING_RESPONSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AWAITING_RESPONSE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ray_cs Starting authentication.\n"

l_.str.1:                               ; @.str.1
	.asciz	"ray_cs authenticate - device not present\n"

	.comm	_OPEN_AUTH_REQUEST,4,2          ; @OPEN_AUTH_REQUEST
	.comm	_join_net,4,2                   ; @join_net
	.comm	_authenticate_timeout,4,2       ; @authenticate_timeout
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_AWAITING_RESPONSE,4,2          ; @AWAITING_RESPONSE
	.no_dead_strip	_authenticate
.subsections_via_symbols
