	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmac_set_ctx_params
_gmac_set_ctx_params:                   ## @gmac_set_ctx_params
	.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
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	4(%rdi), %edi
	callq	_PROV_LIBRARY_CONTEXT_OF
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_16
## %bb.1:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_ossl_prov_cipher_load_from_params
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	movq	%rbx, %rdi
	callq	_ossl_prov_cipher_cipher
	movq	%rax, %rdi
	callq	_EVP_CIPHER_mode
	movq	_EVP_CIPH_GCM_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	callq	_ossl_prov_cipher_cipher
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_ossl_prov_cipher_engine
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EVP_EncryptInit_ex
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	movq	_OSSL_MAC_PARAM_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.8:
	movq	8(%rbx), %r13
	movq	%r15, %rdi
	callq	_EVP_CIPHER_CTX_key_length
	cmpq	%rax, %r13
	jne	LBB0_9
## %bb.10:
	movq	16(%rbx), %rcx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_EVP_EncryptInit_ex
	testl	%eax, %eax
	je	LBB0_16
LBB0_11:
	movq	_OSSL_MAC_PARAM_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_OSSL_PARAM_OCTET_STRING@GOTPCREL(%rip), %rcx
	movl	$0, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.13:
	movq	_EVP_CTRL_AEAD_SET_IVLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_EVP_CIPHER_CTX_ctrl
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movq	16(%rbx), %r8
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_EVP_EncryptInit_ex
	testl	%eax, %eax
	je	LBB0_16
LBB0_15:
	movl	$1, %r14d
	jmp	LBB0_16
LBB0_3:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_CIPHER_NOT_GCM_MODE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_ERR_raise
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_INVALID_KEY_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_CIPH_GCM_MODE,8,3          ## @EVP_CIPH_GCM_MODE
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_EVP_R_CIPHER_NOT_GCM_MODE,4,2  ## @EVP_R_CIPHER_NOT_GCM_MODE
	.comm	_OSSL_MAC_PARAM_KEY,4,2         ## @OSSL_MAC_PARAM_KEY
	.comm	_OSSL_PARAM_OCTET_STRING,8,3    ## @OSSL_PARAM_OCTET_STRING
	.comm	_EVP_R_INVALID_KEY_LENGTH,4,2   ## @EVP_R_INVALID_KEY_LENGTH
	.comm	_OSSL_MAC_PARAM_IV,4,2          ## @OSSL_MAC_PARAM_IV
	.comm	_EVP_CTRL_AEAD_SET_IVLEN,4,2    ## @EVP_CTRL_AEAD_SET_IVLEN
	.no_dead_strip	_gmac_set_ctx_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmac_set_ctx_params
_gmac_set_ctx_params:                   ; @gmac_set_ctx_params
	.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	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x0, #4]
	bl	_PROV_LIBRARY_CONTEXT_OF
	cbz	x19, LBB0_15
; %bb.1:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_ossl_prov_cipher_load_from_params
	cbz	w0, LBB0_16
; %bb.2:
	mov	x0, x21
	bl	_ossl_prov_cipher_cipher
	bl	_EVP_CIPHER_mode
Lloh0:
	adrp	x8, _EVP_CIPH_GCM_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_CIPH_GCM_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.3:
	mov	x0, x21
	bl	_ossl_prov_cipher_cipher
	mov	x22, x0
	mov	x0, x21
	bl	_ossl_prov_cipher_engine
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	x3, #0
	mov	x4, #0
	bl	_EVP_EncryptInit_ex
	cbz	w0, LBB0_16
; %bb.4:
Lloh3:
	adrp	x8, _OSSL_MAC_PARAM_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_MAC_PARAM_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _OSSL_PARAM_OCTET_STRING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OSSL_PARAM_OCTET_STRING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.6:
	ldr	x22, [x21, #8]
	mov	x0, x19
	bl	_EVP_CIPHER_CTX_key_length
	cmp	x22, x0
	b.ne	LBB0_17
; %bb.7:
	ldr	x3, [x21, #16]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x4, #0
	bl	_EVP_EncryptInit_ex
	cbz	w0, LBB0_16
LBB0_8:
Lloh9:
	adrp	x8, _OSSL_MAC_PARAM_IV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OSSL_MAC_PARAM_IV@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_12
; %bb.9:
	mov	x20, x0
	ldr	x8, [x0]
Lloh12:
	adrp	x9, _OSSL_PARAM_OCTET_STRING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OSSL_PARAM_OCTET_STRING@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.10:
Lloh15:
	adrp	x8, _EVP_CTRL_AEAD_SET_IVLEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EVP_CTRL_AEAD_SET_IVLEN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	mov	x0, x19
	mov	x3, #0
	bl	_EVP_CIPHER_CTX_ctrl
	cbz	w0, LBB0_16
; %bb.11:
	ldr	x4, [x20, #16]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_EVP_EncryptInit_ex
	cbz	w0, LBB0_16
LBB0_12:
	mov	w0, #1
	b	LBB0_16
LBB0_13:
Lloh18:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _EVP_R_CIPHER_NOT_GCM_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EVP_R_CIPHER_NOT_GCM_MODE@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	bl	_ERR_raise
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:
Lloh23:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _EVP_R_INVALID_KEY_LENGTH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EVP_R_INVALID_KEY_LENGTH@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_CIPH_GCM_MODE,8,3          ; @EVP_CIPH_GCM_MODE
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_EVP_R_CIPHER_NOT_GCM_MODE,4,2  ; @EVP_R_CIPHER_NOT_GCM_MODE
	.comm	_OSSL_MAC_PARAM_KEY,4,2         ; @OSSL_MAC_PARAM_KEY
	.comm	_OSSL_PARAM_OCTET_STRING,8,3    ; @OSSL_PARAM_OCTET_STRING
	.comm	_EVP_R_INVALID_KEY_LENGTH,4,2   ; @EVP_R_INVALID_KEY_LENGTH
	.comm	_OSSL_MAC_PARAM_IV,4,2          ; @OSSL_MAC_PARAM_IV
	.comm	_EVP_CTRL_AEAD_SET_IVLEN,4,2    ; @EVP_CTRL_AEAD_SET_IVLEN
	.no_dead_strip	_gmac_set_ctx_params
.subsections_via_symbols
