	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_get_signing_algorithm_by_name ## -- Begin function ldns_get_signing_algorithm_by_name
	.p2align	4, 0x90
_ldns_get_signing_algorithm_by_name:    ## @ldns_get_signing_algorithm_by_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_ldns_signing_algorithms@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	addq	$48, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	addq	$32, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
LBB0_5:
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	cmpb	$0, (%r14)
	je	LBB0_7
## %bb.6:
	movq	-24(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movl	-40(%rbx), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_SIGN_HMACMD5,4,2          ## @LDNS_SIGN_HMACMD5
	.comm	_LDNS_SIGN_DSA_NSEC3,4,2        ## @LDNS_SIGN_DSA_NSEC3
	.comm	_LDNS_SIGN_RSASHA1_NSEC3,4,2    ## @LDNS_SIGN_RSASHA1_NSEC3
	.comm	_LDNS_DH,4,2                    ## @LDNS_DH
	.comm	_LDNS_ECC,4,2                   ## @LDNS_ECC
	.comm	_LDNS_INDIRECT,4,2              ## @LDNS_INDIRECT
	.comm	_LDNS_PRIVATEDNS,4,2            ## @LDNS_PRIVATEDNS
	.comm	_LDNS_PRIVATEOID,4,2            ## @LDNS_PRIVATEOID
	.comm	_ldns_signing_algorithms,8,3    ## @ldns_signing_algorithms
	.comm	_LDNS_SIGN_ECC_GOST,4,2         ## @LDNS_SIGN_ECC_GOST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_get_signing_algorithm_by_name ; -- Begin function ldns_get_signing_algorithm_by_name
	.p2align	2
_ldns_get_signing_algorithm_by_name:    ; @ldns_get_signing_algorithm_by_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ldns_signing_algorithms@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ldns_signing_algorithms@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_4
; %bb.1:
	add	x20, x8, #48
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x19
	bl	_strcasecmp
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20], #32
	cbnz	x0, LBB0_2
LBB0_4:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_strtol
	ldrb	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	ldur	w0, [x20, #-40]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_SIGN_HMACMD5,4,2          ; @LDNS_SIGN_HMACMD5
	.comm	_LDNS_SIGN_DSA_NSEC3,4,2        ; @LDNS_SIGN_DSA_NSEC3
	.comm	_LDNS_SIGN_RSASHA1_NSEC3,4,2    ; @LDNS_SIGN_RSASHA1_NSEC3
	.comm	_LDNS_DH,4,2                    ; @LDNS_DH
	.comm	_LDNS_ECC,4,2                   ; @LDNS_ECC
	.comm	_LDNS_INDIRECT,4,2              ; @LDNS_INDIRECT
	.comm	_LDNS_PRIVATEDNS,4,2            ; @LDNS_PRIVATEDNS
	.comm	_LDNS_PRIVATEOID,4,2            ; @LDNS_PRIVATEOID
	.comm	_ldns_signing_algorithms,8,3    ; @ldns_signing_algorithms
	.comm	_LDNS_SIGN_ECC_GOST,4,2         ; @LDNS_SIGN_ECC_GOST
.subsections_via_symbols
