	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_state_ok
_xfrm_state_ok:                         ## @xfrm_state_ok
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_xfrm_state_kern
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpq	$0, 56(%rbx)
	je	LBB0_18
## %bb.2:
	movzwl	(%rbx), %edx
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_xfrm_state_addr_cmp
	testq	%rax, %rax
	sete	%al
	jmp	LBB0_19
LBB0_4:
	movq	24(%r14), %rdi
	cmpq	32(%rbx), %rdi
	jne	LBB0_18
## %bb.5:
	movq	40(%rbx), %rax
	cmpq	%rax, 32(%r14)
	je	LBB0_10
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_18
LBB0_10:
	movq	8(%rbx), %rax
	cmpq	%rax, (%r14)
	je	LBB0_13
## %bb.11:
	testq	%rax, %rax
	jne	LBB0_18
LBB0_13:
	movq	8(%r14), %rcx
	cmpq	16(%rbx), %rcx
	jne	LBB0_18
## %bb.14:
	cmpq	$0, 48(%rbx)
	jne	LBB0_16
## %bb.15:
	movl	24(%rbx), %eax
	movl	16(%r14), %edx
	btl	%edx, %eax
	jae	LBB0_20
LBB0_16:
	movq	_XFRM_MODE_TRANSPORT@GOTPCREL(%rip), %rdx
	movb	$1, %al
	cmpq	(%rdx), %rcx
	je	LBB0_19
## %bb.17:
	movzwl	%r15w, %edx
	jmp	LBB0_3
LBB0_20:
	movq	_IPSEC_PROTO_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xfrm_id_proto_match
	testl	%eax, %eax
	je	LBB0_22
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	8(%r14), %rcx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_IPSEC_PROTO_ANY,4,2            ## @IPSEC_PROTO_ANY
	.comm	_XFRM_MODE_TRANSPORT,8,3        ## @XFRM_MODE_TRANSPORT
	.no_dead_strip	_xfrm_state_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_state_ok
_xfrm_state_ok:                         ; @xfrm_state_ok
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_xfrm_state_kern
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_15
; %bb.2:
	ldrh	w2, [x20]
	mov	x0, x20
	mov	x1, x19
LBB0_3:
	bl	_xfrm_state_addr_cmp
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_16
LBB0_4:
	ldr	x0, [x19, #24]
	ldr	x8, [x20, #32]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.5:
	ldr	x8, [x19, #32]
	ldr	x9, [x20, #40]
	cmp	x8, x9
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_15
; %bb.6:
	ldr	x9, [x19]
	ldr	x8, [x20, #8]
	cmp	x9, x8
	b.eq	LBB0_8
; %bb.7:
	cbnz	x8, LBB0_15
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.9:
	ldr	x9, [x20, #48]
	cbnz	x9, LBB0_11
; %bb.10:
	ldr	w9, [x20, #24]
	ldr	w10, [x19, #16]
	lsr	w9, w9, w10
	tbz	w9, #0, LBB0_14
LBB0_11:
Lloh0:
	adrp	x9, _XFRM_MODE_TRANSPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XFRM_MODE_TRANSPORT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #1
	b	LBB0_16
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	b	LBB0_3
LBB0_14:
Lloh3:
	adrp	x8, _IPSEC_PROTO_ANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPSEC_PROTO_ANY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_xfrm_id_proto_match
	cbz	w0, LBB0_17
LBB0_15:
	mov	w0, #0
LBB0_16:
	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_17:
	ldr	x8, [x19, #8]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSEC_PROTO_ANY,4,2            ; @IPSEC_PROTO_ANY
	.comm	_XFRM_MODE_TRANSPORT,8,3        ; @XFRM_MODE_TRANSPORT
	.no_dead_strip	_xfrm_state_ok
.subsections_via_symbols
