	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_str2wire_int32_buf       ## -- Begin function sldns_str2wire_int32_buf
	.p2align	4, 0x90
_sldns_str2wire_int32_buf:              ## @sldns_str2wire_int32_buf
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	cmpb	$45, (%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtol
	jmp	LBB0_3
LBB0_2:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtoul
LBB0_3:
	movq	-40(%rbp), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_4
## %bb.10:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	%ebx, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET_ERR                        ## TAILCALL
LBB0_4:
	movq	(%r12), %rcx
	movq	_ERANGE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_INTEGER_OVERFLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	cmpq	$3, (%r15)
	ja	LBB0_8
## %bb.7:
	movq	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sldns_write_uint32
	movq	$4, (%r15)
	movq	_LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_INT,4,2 ## @LDNS_WIREPARSE_ERR_SYNTAX_INT
	.comm	_ERANGE,8,3                     ## @ERANGE
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_INTEGER_OVERFLOW,4,2 ## @LDNS_WIREPARSE_ERR_SYNTAX_INTEGER_OVERFLOW
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ## @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ## @LDNS_WIREPARSE_ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_str2wire_int32_buf       ; -- Begin function sldns_str2wire_int32_buf
	.p2align	2
_sldns_str2wire_int32_buf:              ; @sldns_str2wire_int32_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	ldrb	w8, [x0]
	add	x1, sp, #8
	mov	w2, #10
	cmp	w8, #45
	b.ne	LBB0_2
; %bb.1:
	bl	_strtol
	b	LBB0_3
LBB0_2:
	bl	_strtoul
LBB0_3:
	mov	x1, x0
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	cbz	w9, LBB0_5
; %bb.4:
Lloh2:
	adrp	x9, _LDNS_WIREPARSE_ERR_SYNTAX_INT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LDNS_WIREPARSE_ERR_SYNTAX_INT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	sub	w1, w8, w21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_RET_ERR
LBB0_5:
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _ERANGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ERANGE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _LDNS_WIREPARSE_ERR_SYNTAX_INTEGER_OVERFLOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_SYNTAX_INTEGER_OVERFLOW@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19]
	cmp	x8, #3
	b.hi	LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_sldns_write_uint32
	mov	w8, #4
	str	x8, [x19]
Lloh12:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_INT,4,2 ; @LDNS_WIREPARSE_ERR_SYNTAX_INT
	.comm	_ERANGE,8,3                     ; @ERANGE
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_INTEGER_OVERFLOW,4,2 ; @LDNS_WIREPARSE_ERR_SYNTAX_INTEGER_OVERFLOW
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ; @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ; @LDNS_WIREPARSE_ERR_OK
.subsections_via_symbols
