	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bridge_kmod_load               ## -- Begin function bridge_kmod_load
	.p2align	4, 0x90
_bridge_kmod_load:                      ## @bridge_kmod_load
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movabsq	$7450195623575250537, %rax      ## imm = 0x67646972625F6669
	movq	%rax, -56(%rbp)
	movw	$101, -48(%rbp)
	movl	$8, -64(%rbp)
	xorl	%edi, %edi
	callq	_kldnext
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movl	%eax, %r14d
	leaq	-64(%rbp), %r12
	leaq	-56(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_kldnext
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%r14d, %edi
	callq	_kldfirstmod
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%ebx, %edi
	callq	_modfnext
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_modstat
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	-60(%rbp), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	leaq	-56(%rbp), %rdi
	callq	_kldload
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jns	LBB0_11
## %bb.10:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_syslog
	movl	$-1, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L___const.bridge_kmod_load.mod_name:    ## @__const.bridge_kmod_load.mod_name
	.asciz	"if_bridge"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str:                                 ## @.str
	.asciz	"failed to load %s kernel module"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bridge_kmod_load               ; -- Begin function bridge_kmod_load
	.p2align	2
_bridge_kmod_load:                      ; @bridge_kmod_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.bridge_kmod_load.mod_name@PAGE
Lloh4:
	add	x8, x8, l___const.bridge_kmod_load.mod_name@PAGEOFF
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	w8, #101
	strh	w8, [sp, #16]
	mov	w8, #8
	str	w8, [sp]
	mov	w0, #0
	bl	_kldnext
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_kldnext
	mov	x19, x0
	cmp	w0, #0
	b.le	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x19
	bl	_kldfirstmod
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	bl	_modfnext
	mov	x20, x0
	cmp	w0, #0
	b.le	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, sp
	mov	x0, x20
	bl	_modstat
	tbnz	x0, #63, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w1, [sp, #4]
	add	x0, sp, #8
	bl	_strcmp
	cbnz	x0, LBB0_5
	b	LBB0_11
LBB0_8:
	add	x0, sp, #8
	bl	_kldload
	tbnz	x0, #63, LBB0_10
; %bb.9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_syslog
	mov	w0, #-1
LBB0_11:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.bridge_kmod_load.mod_name:    ; @__const.bridge_kmod_load.mod_name
	.asciz	"if_bridge"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str:                                 ; @.str
	.asciz	"failed to load %s kernel module"

.subsections_via_symbols
