	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_bridgeflag
_do_bridgeflag:                         ## @do_bridgeflag
	.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	%ecx, %r15d
	movl	%edx, %ebx
	movl	%edi, %r14d
	movl	$4, %edx
	callq	_strlcpy
	movq	_BRDGGIFFLGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	%r14d, %edi
	movl	$8, %ecx
	xorl	%r8d, %r8d
	callq	_do_cmd
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_4
LBB0_3:
	orl	%ebx, -32(%rbp)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
	testl	%r15d, %r15d
	jne	LBB0_3
LBB0_4:
	notl	%ebx
	andl	%ebx, -32(%rbp)
LBB0_5:
	movq	_BRDGSIFFLGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	%r14d, %edi
	movl	$8, %ecx
	movl	$1, %r8d
	callq	_do_cmd
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRDGGIFFLGS,4,2                ## @BRDGGIFFLGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to get bridge flags"

	.comm	_BRDGSIFFLGS,4,2                ## @BRDGSIFFLGS
L_.str.1:                               ## @.str.1
	.asciz	"unable to set bridge flags"

	.no_dead_strip	_do_bridgeflag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_bridgeflag
_do_bridgeflag:                         ; @do_bridgeflag
	.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	x21, x3
	mov	x20, x2
	mov	x19, x0
	mov	w2, #4
	bl	_strlcpy
Lloh0:
	adrp	x8, _BRDGGIFFLGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRDGGIFFLGS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	mov	w4, #0
	bl	_do_cmd
	tbnz	x0, #63, LBB0_3
; %bb.1:
	cbz	w21, LBB0_4
LBB0_2:
	ldr	w8, [sp, #8]
	orr	w8, w8, w20
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	cbnz	w21, LBB0_2
LBB0_4:
	ldr	w8, [sp, #8]
	bic	w8, w8, w20
LBB0_5:
	str	w8, [sp, #8]
Lloh5:
	adrp	x8, _BRDGSIFFLGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BRDGSIFFLGS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	mov	w4, #1
	bl	_do_cmd
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BRDGGIFFLGS,4,2                ; @BRDGGIFFLGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to get bridge flags"

	.comm	_BRDGSIFFLGS,4,2                ; @BRDGSIFFLGS
l_.str.1:                               ; @.str.1
	.asciz	"unable to set bridge flags"

	.no_dead_strip	_do_bridgeflag
.subsections_via_symbols
