	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_pkt_set_flags             ## -- Begin function ldns_pkt_set_flags
	.p2align	4, 0x90
_ldns_pkt_set_flags:                    ## @ldns_pkt_set_flags
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_LDNS_QR@GOTPCREL(%rip), %rax
	notl	%ebx
	testl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ldns_pkt_set_qr
LBB0_4:
	movq	_LDNS_AA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ldns_pkt_set_aa
LBB0_6:
	movq	_LDNS_RD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ldns_pkt_set_rd
LBB0_8:
	movq	_LDNS_TC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ldns_pkt_set_tc
LBB0_10:
	movq	_LDNS_CD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ldns_pkt_set_cd
LBB0_12:
	movq	_LDNS_RA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ldns_pkt_set_ra
LBB0_14:
	movq	_LDNS_AD@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	testl	%ebx, (%rax)
	jne	LBB0_16
## %bb.15:
	movl	$1, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ldns_pkt_set_ad
	jmp	LBB0_16
LBB0_1:
	xorl	%r15d, %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_QR,4,2                    ## @LDNS_QR
	.comm	_LDNS_AA,4,2                    ## @LDNS_AA
	.comm	_LDNS_RD,4,2                    ## @LDNS_RD
	.comm	_LDNS_TC,4,2                    ## @LDNS_TC
	.comm	_LDNS_CD,4,2                    ## @LDNS_CD
	.comm	_LDNS_RA,4,2                    ## @LDNS_RA
	.comm	_LDNS_AD,4,2                    ## @LDNS_AD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_pkt_set_flags             ; -- Begin function ldns_pkt_set_flags
	.p2align	2
_ldns_pkt_set_flags:                    ; @ldns_pkt_set_flags
	.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
	cbz	x0, LBB0_15
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LDNS_QR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_QR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w8, w1
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_ldns_pkt_set_qr
LBB0_3:
Lloh3:
	adrp	x8, _LDNS_AA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_AA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	_ldns_pkt_set_aa
LBB0_5:
Lloh6:
	adrp	x8, _LDNS_RD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	bl	_ldns_pkt_set_rd
LBB0_7:
Lloh9:
	adrp	x8, _LDNS_TC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_TC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #1
	bl	_ldns_pkt_set_tc
LBB0_9:
Lloh12:
	adrp	x8, _LDNS_CD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_CD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #1
	bl	_ldns_pkt_set_cd
LBB0_11:
Lloh15:
	adrp	x8, _LDNS_RA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LDNS_RA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #1
	bl	_ldns_pkt_set_ra
LBB0_13:
Lloh18:
	adrp	x8, _LDNS_AD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LDNS_AD@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_16
; %bb.14:
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_ldns_pkt_set_ad
	b	LBB0_17
LBB0_15:
	mov	w20, #0
	b	LBB0_17
LBB0_16:
	mov	w20, #1
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_QR,4,2                    ; @LDNS_QR
	.comm	_LDNS_AA,4,2                    ; @LDNS_AA
	.comm	_LDNS_RD,4,2                    ; @LDNS_RD
	.comm	_LDNS_TC,4,2                    ; @LDNS_TC
	.comm	_LDNS_CD,4,2                    ; @LDNS_CD
	.comm	_LDNS_RA,4,2                    ; @LDNS_RA
	.comm	_LDNS_AD,4,2                    ; @LDNS_AD
.subsections_via_symbols
