	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_net_setcarrier           ## -- Begin function brcmf_net_setcarrier
	.p2align	4, 0x90
_brcmf_net_setcarrier:                  ## @brcmf_net_setcarrier
	.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	%esi, %r15d
	movq	%rdi, %rbx
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	callq	_brcmf_dbg
	movq	(%rbx), %r14
	movq	_BRCMF_NETIF_STOP_REASON_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%r15d, %r15d
	sete	%dl
	movq	%rbx, %rdi
	callq	_brcmf_txflowblock_if
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_carrier_on               ## TAILCALL
LBB0_3:
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_carrier_off              ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter, bsscfgidx=%d carrier=%d\n"

	.comm	_BRCMF_NETIF_STOP_REASON_DISCONNECTED,4,2 ## @BRCMF_NETIF_STOP_REASON_DISCONNECTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_net_setcarrier           ; -- Begin function brcmf_net_setcarrier
	.p2align	2
_brcmf_net_setcarrier:                  ; @brcmf_net_setcarrier
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x21, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_brcmf_dbg
	ldr	x19, [x21]
Lloh5:
	adrp	x8, _BRCMF_NETIF_STOP_REASON_DISCONNECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BRCMF_NETIF_STOP_REASON_DISCONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	cmp	w20, #0
	cset	w2, eq
	mov	x0, x21
	bl	_brcmf_txflowblock_if
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	w20, LBB0_3
; %bb.1:
	cbnz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netif_carrier_on
LBB0_3:
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netif_carrier_off
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter, bsscfgidx=%d carrier=%d\n"

	.comm	_BRCMF_NETIF_STOP_REASON_DISCONNECTED,4,2 ; @BRCMF_NETIF_STOP_REASON_DISCONNECTED
.subsections_via_symbols
